Bastian Hofmann

Merge pull request #9 from vslinko/auth_header

Authrorize header must start with OAuth not Bearer
@@ -298,7 +298,7 @@ class OAuth2_Service @@ -298,7 +298,7 @@ class OAuth2_Service
298 $endpoint .= (strpos($endpoint, '?') !== false ? '&' : '?') . http_build_query($uriParameters); 298 $endpoint .= (strpos($endpoint, '?') !== false ? '&' : '?') . http_build_query($uriParameters);
299 } 299 }
300 300
301 - $headers = array_merge(array('Authorization: Bearer ' . $token->getAccessToken()), $additionalHeaders); 301 + $headers = array_merge(array('Authorization: OAuth ' . $token->getAccessToken()), $additionalHeaders);
302 302
303 $http = new OAuth2_HttpClient($endpoint, $method, $parameters, $headers); 303 $http = new OAuth2_HttpClient($endpoint, $method, $parameters, $headers);
304 $http->execute(); 304 $http->execute();