05-22-2023 01:52 AM
Hi there I'm using the following API to generate the access token and I'm putting all inputs:
curl -X POST 'https://api.ebay.com/identity/v1/oauth2/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Authorization: Basic Y .... 4OThj' \
-d 'grant_type=authorization_code&
code=v^1.1#i ..... #MA==&
redirect_uri=foo'
but it returns this :
{"error":"invalid_request","error_description":"request is missing a required parameter or malformed."}
Am I wrong about something?
05-25-2023 01:29 PM
I'm not versed in cURL, but I don't see the 'scope' parameter in that data. The scope would be a space-delimited list of URLs that is sometimes optional. You may want to ensure that you are not omitting a required scope for your application:
https://developer.ebay.com/api-docs/static/oauth-scopes.html
06-02-2023 08:17 AM
Hi @hoss_4807
Please find the cURL code snippet for the step "Exchanging the authorization code for a User access token" below:
06-03-2023 04:09 AM
I've tried this before and the result is the same.
The problem isn't here.
06-03-2023 04:14 AM
my tires are not limited to curl,
I've tried this with Postman and browsers like Chrome.
Input data and responses are the same.