From 73f22070f67a227f4c7179398ce03fbe2240b6d6 Mon Sep 17 00:00:00 2001 From: Drsdre Date: Fri, 6 Jan 2017 16:45:09 +0100 Subject: [PATCH] Fixed asRaw to return content instead of response object. --- .idea/vcs.xml | 6 ++++++ Client.php | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Client.php b/Client.php index efd6609..7a4ce08 100644 --- a/Client.php +++ b/Client.php @@ -263,7 +263,7 @@ public function deleteData( // API Data response methods /** - * Return response as array + * Return content as array * * @return array * @throws Exception @@ -275,7 +275,7 @@ public function asArray() { } /** - * Return response as object + * Return content as object * * @return \stdClass * @throws Exception @@ -287,12 +287,12 @@ public function asObject() { } /** - * Get the raw response object + * Get the raw content object * * @return yii\httpclient\Response */ public function asRaw() { - return $this->response; + return $this->response->content; } /**