I want to get access token. For that I first make GET request
http://mystore/oauth/authorize?redirect_uri=http%3A%2F%2Fmystore/oauth-callback&client_id=<myclientid>&response_type=code
Then I get code from response uri and make next POST request
http://mystore/api/tokenwith headers:
["Content-Type":"application/x-www-form-urlencoded","Accept":"application/json"
and fields:
client_id, client_secret, code, grant_type= authorization_code, redirect_uri.
Finally, i get error response:
and if I repeat same request I will get another error:
{
"error": "unauthorized_client"
}
{
"error": "invalid_grant"
}
What is the problem?