bashofmann

vz endpoint test

@@ -175,7 +175,7 @@ class OAuth2_Service @@ -175,7 +175,7 @@ class OAuth2_Service
175 * 175 *
176 * @param OAuth2_HttpClient $http 176 * @param OAuth2_HttpClient $http
177 */ 177 */
178 - private function _parseAccessTokenResponse(OAuth2_HttpClient $http) { 178 + private function _parseAccessTokenResponse(OAuth2_HttpClient $http) {
179 $headers = $http->getHeaders(); 179 $headers = $http->getHeaders();
180 $type = 'text'; 180 $type = 'text';
181 if (isset($headers['Content-Type']) && strpos($headers['Content-Type'], 'application/json') !== false) { 181 if (isset($headers['Content-Type']) && strpos($headers['Content-Type'], 'application/json') !== false) {
@@ -246,7 +246,7 @@ class OAuth2_Service @@ -246,7 +246,7 @@ class OAuth2_Service
246 246
247 $http = new OAuth2_HttpClient($endpoint, $method, $parameters, $header); 247 $http = new OAuth2_HttpClient($endpoint, $method, $parameters, $header);
248 $http->execute(); 248 $http->execute();
249 - 249 +
250 return $http->getResponse(); 250 return $http->getResponse();
251 } 251 }
252 } 252 }