OAuthException Object ( [message:protected] => Invalid auth/bad request (got a 403, expected HTTP/1.1 20X or a redirect) [string:Exception:private] => [code:protected] => 403 [file:protected] => /srv/projects/sandbox/refs/src/oauth-login-php/www/redirect/index.php [line:protected] => 27 [trace:Exception:private] => Array ( [0] => Array ( [file] => /srv/projects/sandbox/refs/src/oauth-login-php/www/redirect/index.php [line] => 27 [function] => getRequestToken [class] => OAuth [type] => -> [args] => Array ( [0] => https://api.vingd.com/sandbox/broker/v1/oauth/request_token [1] => http://developers.vingd.com/demo/ref/oauth-login-php/redirect/index.php ) ) ) [previous:Exception:private] => [lastResponse] => { "context": "Forbidden", "message": "Invalid consumer.", "status": "403 Forbidden" } [debugInfo] => Array ( [sbs] => GET&https%3A%2F%2Fapi.vingd.com%2Fsandbox%2Fbroker%2Fv1%2Foauth%2Frequest_token&oauth_callback%3Dhttp%253A%252F%252Fdevelopers.vingd.com%252Fdemo%252Fref%252Foauth-login-php%252Fredirect%252Findex.php%26oauth_consumer_key%3Doauth-login-demo%26oauth_nonce%3D55171421559eb4e7ac9bec0.25883149%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1508593274%26oauth_version%3D1.0 [headers_sent] => Authorization: OAuth oauth_callback="http%3A%2F%2Fdevelopers.vingd.com%2Fdemo%2Fref%2Foauth-login-php%2Fredirect%2Findex.php",oauth_consumer_key="oauth-login-demo",oauth_signature_method="HMAC-SHA1",oauth_nonce="55171421559eb4e7ac9bec0.25883149",oauth_timestamp="1508593274",oauth_version="1.0",oauth_signature="rcazBIW7hky1kYrFF%2Bsk4hbTyGU%3D" [headers_recv] => HTTP/1.1 403 Forbidden Server: nginx Date: Sat, 21 Oct 2017 13:41:14 GMT Content-Type: text/plain Content-Length: 91 Connection: close [body_recv] => { "context": "Forbidden", "message": "Invalid consumer.", "status": "403 Forbidden" } ) ) Welcome !