How can I connect api with websites?
I am new to the eBay API and currently developing in PHP, I have managed to use GetItem
to import details of an order based on the Item ID
to my website’s database. But What I want to do now is to link a users account to my website and import their listings to my database. I have put the code I used for GetItem
(below) but now I am stuck and I don’t know what to use, GetAccount
, GetUser
or GetSellerList
.
3
Answers
if you want all items of a user and you have access to his auth token you could use the getMyEbaySelling call that will return you all items of the user.
(explainations + examples can be found here: Can I edit A third party ebay seller's item from his seller list by API?)
if you want to retrieve items from “3rd party” users from which you only have the user/account name you will need to go with the getSellerListing call can retrieve items listed by this seller. (executeable example here: https://ebay-sdk.intradesys.com/s/c0c7c76d30bd3dcaefc96f40275bdc0a)
depending on what you want to display on your website you will need to see if those informations are already contained within the response or you will need to call the getItem call for each item to retrieve additional informations that are missing
Here you go Arjun
eBay returns 200 items in one page for one api call
I would also take a look at the difference between getsellerlist and getmyebayselling. I do not think getmyebayselling can retrieve things like the users store categories, but getsellerlist can.