Error : Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)
题
Why i got this error when i use following code?
$customer_key = 'my_key';
$customer_securet = 'customer_securet';
$a = new Oauth($customer_key, $customer_securet, OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_AUTHORIZATIONl);
$a->getRequestToken('https://api.login.yahoo.com/oauth/v2/get_request_token?oauth_callback=http://mysite.com/invitehandler.php?provider=yahoo');
Error : Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)
解决方案
I found my problem myself..
Its just needed update server time!
不隶属于 StackOverflow