question

tewa_277 avatar image
0 Likes"
tewa_277 asked

Getting "request is missing a required parameter or malformed" for authorization_code flow

My cURL request is below and not able to get access token:

curl -X POST 'https://api.sandbox.ebay.com/identity/v1/oauth2/token' \

-H 'Content-Type: application/x-www-form-urlencoded' \

-H 'Authorization: Basic VGVzdHdhdmUtb2F1dGhhcHAtU0JYLWMwYmI4MDQ3MC1iOWFiMmNiNDpTQlgtMGJiODA0NzBmZmMwLWExY2YtNDExOC1hZWY5LTgyY2Y=' \

-d 'grant_type=authorization_code&code=v%5E1.1%23i%5E1%23r%5E1%23I%5E3%23f%5E0%23p%5E3%23t%5EUl41XzExOjQzODlDMDA3OTAyNDI4NDMzQjVBMzZGMThBQTg3MjJEXzBfMSNFXjEyODQ%3D&redirect_uri=Testwave_qa-Testwave-oautha-zxumx'

,

My cURL is below and not able to get access token:

curl -X POST 'https://api.sandbox.ebay.com/identity/v1/oauth2/token' \

-H 'Content-Type: application/x-www-form-urlencoded' \

-H 'Authorization: Basic VGVzdHdhdmUtb2F1dGhhcHAtU0JYLWMwYmI4MDQ3MC1iOWFiMmNiNDpTQlgtMGJiODA0NzBmZmMwLWExY2YtNDExOC1hZWY5LTgyY2Y=' \

-d 'grant_type=authorization_code&code=v%5E1.1%23i%5E1%23r%5E1%23I%5E3%23f%5E0%23p%5E3%23t%5EUl41XzExOjQzODlDMDA3OTAyNDI4NDMzQjVBMzZGMThBQTg3MjJEXzBfMSNFXjEyODQ%3D&redirect_uri=Testwave_qa-Testwave-oautha-zxumx'

oauth token
· 1
10 |600 characters needed characters left characters exceeded

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

use https://www.postman.com/downloads/

it has a code generator which helps a lot, specially for none developers

0 Likes 0 ·

0 Answers

· Write an Answer

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.