kiwnix

Updated to be compatible with Bearer token draft 03 and up. (Using "Authorizatio…

…n: Bearer X" instead of "Authorization: Oauth X" http://tools.ietf.org/html/draft-ietf-oauth-v2-bearer-08
@@ -296,7 +296,7 @@ class OAuth2_Service @@ -296,7 +296,7 @@ class OAuth2_Service
296 $endpoint .= (strpos($endpoint, '?') !== false ? '&' : '?') . http_build_query($uriParameters); 296 $endpoint .= (strpos($endpoint, '?') !== false ? '&' : '?') . http_build_query($uriParameters);
297 } 297 }
298 298
299 - $headers = array_merge(array('Authorization: OAuth ' . $token->getAccessToken()), $additionalHeaders); 299 + $headers = array_merge(array('Authorization: Bearer ' . $token->getAccessToken()), $additionalHeaders);
300 300
301 $http = new OAuth2_HttpClient($endpoint, $method, $parameters, $headers); 301 $http = new OAuth2_HttpClient($endpoint, $method, $parameters, $headers);
302 $http->execute(); 302 $http->execute();