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%3D932666723594ce896dd7664.11549053%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1498212502%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="932666723594ce896dd7664.11549053",oauth_timestamp="1498212502",oauth_version="1.0",oauth_signature="SaE7GDhUh%2BcHF832hO6QMTiOrkU%3D" [headers_recv] => HTTP/1.1 403 Forbidden Server: nginx Date: Fri, 23 Jun 2017 10:08:22 GMT Content-Type: text/plain Content-Length: 91 Connection: close [body_recv] => { "context": "Forbidden", "message": "Invalid consumer.", "status": "403 Forbidden" } ) ) Welcome !