From aaa0c5a80403ad8910664f2388e33f338ff53f30 Mon Sep 17 00:00:00 2001 From: Gabriel Moreira Date: Thu, 21 May 2020 20:36:35 +1000 Subject: [PATCH] Changed return value of the _send() method to include result and status code. --- vero/client.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vero/client.php b/vero/client.php index 8666824..74adeeb 100644 --- a/vero/client.php +++ b/vero/client.php @@ -115,7 +115,10 @@ private function _send($endpoint, $request_data, $request_type = 'post') { $code = curl_getinfo($handle, CURLINFO_HTTP_CODE); curl_close($handle); - return $result; + return array( + 'result' => $result, + 'statusCode' => $code + ); } }