Calling $auth->getToken() produces 400 Bad Request Exception
dmatora opened this issue · 1 comments
dmatora commented
Calling $auth->getToken() produces
Client error: `GET https://api.zenmoney.ru/oauth2/authorize/?response_type=code&client_id=xxx&redirect_uri=http%3A%2F%2Fexample.com` resulted in a `400 Bad Request` response:
{
"error": "invalid_request"
}
Exception
When updating OAuth2 options
'url_authorize' => 'http://api.zenmoney.ru/access/',
'url_token' => 'http://api.zenmoney.ru/oauth/request_token',
'url_redirect' => 'http://xxx.com/callback/zenmoney',
calling getToken() success with running $this->visitAuthorizeUri(), but crashes when running $this->getAuthorizeCode() with Notice: Undefined index: code
in vendor/ryadnov/zenmoney-php-api-library/src/Auth/OAuth2.php (line 121)
dmatora commented
Once only left url_redirect on options, it worked