Do oauth token grants require a paid account? I attempted the following with both a free and trial account.
Sending /token POST as documented results in:
{
"errorCode": 1004,
"message": "You are not authorized to perform this action.",
"refId": "cd9hgzwmdduh"
}
I use these parameters:
grant_type: authorization_code
code: <acquired from step 1. in oauth flow>
hash: <see below>
I acquired the hash
parameter with the following commandline operation:
export app_secret=<acquired from developer app profile.>
export code=<code acquired from step 1 in oauth flow.>
echo -n "$app_secret$code" | openssl dgst -sha256