question

turboperformancecentre avatar image
0 Likes"
turboperformancecentre asked

Cant obtain a token via authorization_code

Not sure what happened to my previous question so posting this one again. Can't get the token neither via PHP app nor using postman. Getting as below: ![alt text][1] Any help would be appreciated ![alt text][2] [1]: /storage/temp/1241-screen-shot-2017-02-27-at-201204.png [2]: /storage/temp/1242-screen-shot-2017-02-27-at-201233.png
tokens
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

davidtsadler avatar image
0 Likes"
davidtsadler answered
This is only a guess but it may be due to having the request body split over several lines . You can see that the redirect_uri parameter is not a complete word. grant_type=authorization_code&code=123456789&redi rect_uri=xxxYYYzzz The body should be one complete string with no newline or carriage return characters. grant_type=authorization_code&code=123456789&redirect_uri=xxxYYYzzz It's also worth checking that the value for redirect_uri is the correct value for the environment. Using the sandbox value in the production environment will also trigger this error.
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

slayfoe avatar image
1 Like"
slayfoe answered
I'm in the same position too. Any guidance from someone that has been here and got past it would be appreciated!
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.