Previously I was using curl to grab details of the items I am selling by using:
http://open.api.ebay.com/shopping?version=897&callname=GetSingleItem&appid='<my app id>'&siteid=3&responseencoding=JSON&IncludeSelector=Details&ItemID='<item ID>'
I now have to start using oauth and after reading all the links I'm still confused how to do this.
I've got a script to generate the oauth token and I believe I have to use pass this in a header X-EBAY-API-IAF-TOKEN
I've tried curl -H 'X-EBAY-API-IAF-TOKEN: <token>' <Above URL>
but keep getting "Application ID invalid" so this can't be right.
Is there someone who can provide a easy to follow curl example to do this. All the eBay links I've read don't seem to help.
Some links point to https://developer.ebay.com/api-docs/static/oauth-client-credentials-grant.html
Set the following HTTP request headers:
- Content-Type – Must be set to:
Authorization – The word "
Basic" followed by your Base64-encoded OAuth credentials (