Reputation: 21
enter image description here getting following error
i add url parameters client_id,redirecturl,scope and response type but getting this error
{
"error_id": "invalid_request",
"error_description": "Input request parameters are invalid.",
"http_status_code": 400
}{
Upvotes: 0
Views: 1256
Reputation: 9320
#1 Check App Key
#2 Registry User
#3 Get User Token
#4 API call
https://developer.ebay.com/my/keys
I tested in sandbox, If you use production, needs to change production URL
https://developer.ebay.com/sandbox/register
Sign in from developer portal
https://developer.ebay.com/
Click Sign In
Enter e-mail of user
Enter password of user
Finally Got the user access-token
API call with #3 user access token. In this case, user can't get the inventory due to limited scope for inventory. But I shows how to use user-token to call API.
Using API explorer
https://developer.ebay.com/DevZone/build-test/test-tool/default.aspx?index=0
Documentation in here
You needs three information
sandbox - using test, use this at this time
https://api.sandbox.ebay.com/identity/v1/oauth2/token
production - using production
https://api.ebay.com/identity/v1/oauth2/token
cleint id
and client secret
https://developer.ebay.com/my/keys
AppID (=Client ID) & Cert ID (= Cleint Secret)
#1 -> into URL with POST
method
Select Authrization
tab and select Basic Auth
Type
#2 -> Paste client id
into Username
and cleint secret
into password
Change the Body
tab and select x-www-form-urlencoded
Then key
-> grant_type
, value
-> client_credentials
Step by Step from #1 to #10.
Token URL
https://api.sandbox.ebay.com/identity/v1/oauth2/token
Input Body
grant_type
client_credentials
Upvotes: 2