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; } /**