question

gattomansueto avatar image
0 Likes"
gattomansueto asked ·

HTTP GET URL for GetItem call

I want to get the relisted item ID starting from ended item ID. I know GetItem is the correct call to make, but how can I make an HTTP GET call for this? This page http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetItem.html describes it all except what I need. I think I should make a call like this: https://api.ebay.com/wsapi?callname=GetItem&eBayAuthToken=???&ItemID=1 Is it correct? Where do I get eBayAuthToken? Thank you!
getitem
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.

davidtsadler avatar image
1 Like"
davidtsadler answered ·
Below is a breakdown of a *POST* request to the Trading service. There are a few things to note. - I'm assuming that you are going to send a *POST XML* request and so, unlike the Shopping service, there are no URL parameters as they are passed in via the HTTP headers and the request body. SOAP requests are done a bit differently but there is more information from eBay on the [Making a Call]( http://developer.ebay.com/DevZone/XML/docs/Concepts/MakingACall.html) page. - How you construct and send this request is dependant upon the programming language that you are using. - Replace [API VERSION] with the current version of the Trading API. As of writing the current version is 951 but check with the eBay [docs]( http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/index.html) to determine the latest. - [SITE ID] should be the numerical ID of the site that the item is listed on. For example, 0 for the US or 3 for the UK. - As with every operation in the Trading service you will need to provide a valid auth token in the request. If you need to generate a token you can use the [tool provided by eBay]( https://developer.ebay.com/DevZone/account/appsettings/Tokens/) and replace [EBAY AUTH TOKEN] with a token that is linked to your eBay account. You don't have to worry about getting a token from the seller of the item. - [ITEM NUMBER] is obviously the ID of the item that you are interested in. URL https://api.ebay.com/ws/api.dll HTTP Headers X-EBAY-API-COMPATIBILITY-LEVEL: [API VERSION] X-EBAY-API-CALL-NAME: GetItem X-EBAY-API-SITEID: [SITE ID] Content-Type: text/xml POST Body [EBAY AUTH TOKEN] [ITEM NUMBER]
· Share
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.

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ answered ·
ezezzezeze
· Share
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.

gattomansueto avatar image
0 Likes"
gattomansueto answered ·
Thank you for your reply. I'll put it in practice and let myself be heard again if I need more help. Thank you once again!
· Share
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.

gattomansueto avatar image
0 Likes"
gattomansueto answered ·
@developersprogram-lisa I have a website which shows some selected items from eBay. These items IDs are currently inserted manually by me into the database. When the "items" page of the website is loaded, for each item ID I make a call to the following URL: http://open.api.ebay.com/shopping?callname=GetSingleItem&responseencoding=XML≈pid=MyAppID&siteid=101&version=515&ItemID=TheItemID This way I obtain an XML file from which I get the relevant information to be printed on the page, including the link to the eBay item. But if the auction or listing has ended, I cannot print anything because I don't want my visitors to go to an ended auction or listing. If the item has been relisted, I would like to get and print the information of the reslisted item and save its ID in my database in place of the old item ID. Unfortunately the GetSingleItem call doesn't give me the relisted item ID which I could get from GetItem call that is part of the Trading API. I was wondering if it is possible to construct the URL for the GetItem call as I do with the GetSingleItem call and how. But as for what @helios825, it seems that it is not possible to make this HTTP GET call but only an HTTP POST call. Anyway, can you give an example of the full URL to call, with all the needed parameters? Thank you.
· Share
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.

developersprogram-lisa avatar image
0 Likes"
developersprogram-lisa answered ·
What type of application are you trying to build? If you provide a little more info, we might have other ideas to help you, too. Kind regards, Lisa
· 6 · Share
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.

This forum is being used to sell stolen credit cards. The threads are marked as close, but still available.
0 Likes 0 · ·
Oh, is that what those whacky threads are? I'm not given an option to remove them, just Report and Close -- of which I do both. But yeah, it would be good if eBay took those certain threads down altogether.
0 Likes 0 · ·
Yeah. I didn't realize the report option was even there until I saw you closed that one. It's kinda buried. (Still hate this forum software) I replied to try to get her attention. They don't seem to bother with this forum unless a question goes unanswered for a few days, and they haven't notice those yet.
0 Likes 0 · ·
Which forum? And what has it got to do with my question?
0 Likes 0 · ·
I apologize if we are hijacking your question/thread, gattomansueto . I'm guessing that clickprime posted his comment there to attempt to get the attention of staff member developersprogram-lisa . You can see an example of the offending thread by looking at the index list in [this very subforum][1]. See that closed thread right there near the top. [1]: https://forums.developer.ebay.com/spaces/11/ebay-apis-search.html
0 Likes 0 · ·
Show more comments
helios825 avatar image
0 Likes"
helios825 answered ·
You can't use HTTP GET/REST for GetItem, since it's a Trading API call. You need to POST your request to the Trading API endpoint. Read the docs to learn more about the Trading API. You can generate a token using your own credentials within the eBay Dev account area using the token generation tool.
· Share
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.

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.