From 91955b3ee46eafc7e5863cfc3a206e39491da7ea Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Fri, 7 Nov 2014 11:34:54 +0300 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 747d411..d1e4bbb 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,11 @@ if ($response->isSuccessful()) { $response->getStatusCode(), $response->getErrorMsg() ); + + // получить детализацию ошибок + //if (isset($response['errors'])) { + // print_r($response['errors']); + //} } ``` @@ -83,5 +88,10 @@ if ($response->isSuccessful() && 201 === $response->getStatusCode()) { $response->getStatusCode(), $response->getErrorMsg() ); + + // получить детализацию ошибок + //if (isset($response['errors'])) { + // print_r($response['errors']); + //} } ```