From 268f248c4492334b5fb59df312743cd713ddb133 Mon Sep 17 00:00:00 2001 From: Rafael White Date: Wed, 8 Jan 2020 12:07:12 -0400 Subject: [PATCH] Parse response --- src/Zoho/CRM/Request/Response.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Zoho/CRM/Request/Response.php b/src/Zoho/CRM/Request/Response.php index bb6c84d..499fc0f 100755 --- a/src/Zoho/CRM/Request/Response.php +++ b/src/Zoho/CRM/Request/Response.php @@ -216,7 +216,8 @@ protected function parseResponseGetRecords() */ protected function parseResponsePostRecords() { - $data = current($this->responseData['data']); + $responseData = current($this->responseData); + $data = current($responseData['data']); $this->status = $data['status']; $this->recordId = array_key_exists('id', $data['details']) ? $data['details']['id'] : null; }