diff --git a/Vendor/OAuth/OAuthClient.php b/Vendor/OAuth/OAuthClient.php index bfa137e..1ce7513 100644 --- a/Vendor/OAuth/OAuthClient.php +++ b/Vendor/OAuth/OAuthClient.php @@ -115,7 +115,7 @@ private function createRequest($httpMethod, $url, $token, array $parameters) { private function doGet($url) { $socket = new HttpSocket(); $result = $socket->get($url); - $this->fullResponse = $socket->response; + $this->fullResponse = $result; return $result; } @@ -123,7 +123,7 @@ private function doGet($url) { private function doPost($url, $data) { $socket = new HttpSocket(); $result = $socket->post($url, $data); - $this->fullResponse = $socket->response; + $this->fullResponse = $result; return $result; } @@ -155,7 +155,7 @@ private function doPostMultipartFormData($url, $authorization, $paths, $data) { 'Authorization' => $authorization, 'Content-Type' => "multipart/form-data; boundary={$boundary}"), 'body' => $body)); - $this->fullResponse = $socket->response; + $this->fullResponse = $result; return $result; } @@ -168,7 +168,7 @@ private function doRequest($request) { } $response = array(); - parse_str($data, $response); + parse_str($data->body, $response); return $this->createOAuthToken($response); }