ebay-api

eBay API call not working for UPC/EAN

自古美人都是妖i 提交于 2019-12-07 06:27:15
问题 eBay's API findItemsByProduct operation would work on UPC and EAN. But unfortunately it is not working. The below HTTP GET request for example, throws an "Invalid product ID value." [error 41] http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=MY-APP-ID-GOES-HERE&OPERATION-NAME=findItemsByProduct&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&productId.@type=EAN&productId=0016000275270&paginationInput.entriesPerPage=3 Note: Please replace the SECURITY-APPNAME

Returning Store Categories with eBay API using PHP

末鹿安然 提交于 2019-12-06 14:19:56
问题 Which API call should I use to return all categories from User Store? I'm trying to do it with PHP. $xml = simplexml_load_file('http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=$myappid&siteid=77&CategoryID=-1&version=729&IncludeSelector=ChildCategories'); But it's returning only the eBay categories, not the User Store. 回答1: The Shopping API cannot retrieve a users store categories. You will need to use the Trading API. You would have to use the GetStore call. Which would

Changing eBay API target site from US to UK

蹲街弑〆低调 提交于 2019-12-06 02:24:17
I currently have working project for uploading my products via API to ebay.com (US) website and I am trying to get it to work for eBay's UK website. What are the parameters I need to change in my API call, besides following. SiteId : 3 (UK) (in every call) CategorySiteID : 3 X-EBAY-API-SITEID : 3 AddFixedPriceItemRequest->Item->Country : UK AddFixedPriceItemRequest->Item->Currency : GBP I have tried to dump request and response object on each step with WarningLevel High with no luck of an error message. Every response gives back success but products do not show up on website. Any help is

Ebay API ISO 8601 duration format to timestamp

随声附和 提交于 2019-12-06 01:51:00
Ebay API provides me time in ISO 8601. For example, it gives me item time left: P0DT0H1M4S Here is how this time is formatted: ebay duration I want to convert this time to simple Y-m-d H:i:s format. So far I've tried date("Y-m-d", strtotime("P0DT0H1M4S")); but it does not work. That date interval string is an ISO 8601 duration specification and can be use with DateTime() and DateInterval() $date = new DateTime(); $date->add(new DateInterval('P0DT0H1M4S')); echo $date->format('Y-m-d H:i:s'); or as a one-liner (PHP 5.4+) echo (new DateTime())->add(new DateInterval('P0DT0H1M4S'))->format('Y-m-d H

eBay API call not working for UPC/EAN

扶醉桌前 提交于 2019-12-05 08:54:46
eBay's API findItemsByProduct operation would work on UPC and EAN. But unfortunately it is not working. The below HTTP GET request for example, throws an "Invalid product ID value." [error 41] http://svcs.ebay.com/services/search/FindingService/v1?SECURITY-APPNAME=MY-APP-ID-GOES-HERE&OPERATION-NAME=findItemsByProduct&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&productId.@type=EAN&productId=0016000275270&paginationInput.entriesPerPage=3 Note: Please replace the SECURITY-APPNAME's value with your eBay's free APP-ID. I've replaced it with MY-APP-ID-GOES-HERE for obvious reasons.

how to use python xml.etree.ElementTree to parse eBay API response?

时间秒杀一切 提交于 2019-12-05 01:27:52
问题 I am trying to use xml.etree.ElementTree to parse responses from eBay finding API, findItemsByProduct. After lengthy trial and error, I came up with this code which prints some data: import urllib from xml.etree import ElementTree as ET appID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' isbn = '3868731342' namespace = '{http://www.ebay.com/marketplace/search/v1/services}' url = 'http://svcs.ebay.com/services/search/FindingService/v1?' \ + 'OPERATION-NAME=findItemsByProduct' \ + '&SERVICE-VERSION

Returning Store Categories with eBay API using PHP

北城余情 提交于 2019-12-04 19:21:25
Which API call should I use to return all categories from User Store? I'm trying to do it with PHP. $xml = simplexml_load_file('http://open.api.ebay.com/Shopping?callname=GetCategoryInfo&appid=$myappid&siteid=77&CategoryID=-1&version=729&IncludeSelector=ChildCategories'); But it's returning only the eBay categories, not the User Store. The Shopping API cannot retrieve a users store categories. You will need to use the Trading API. You would have to use the GetStore call. Which would return a StoreType object containing a StoreCustomCategoryArrayType object. EDIT: First you sign up to the eBay

Connecting to eBay Trading API through SoapClient throws 'The web service eBayAPI is not properly configured or not found and is disabled' exception

◇◆丶佛笑我妖孽 提交于 2019-12-04 18:09:43
I'm trying to connect to the ebay trading API and make a basic request using PHP's SoapClient class, but I'm having trouble. I've done hours of searching for and fiddling with examples, but I cannot get anything to work. So I wrote the following barebones code and I'm trying to get it working: $token = [token here]; $client = new SOAPClient('http://developer.ebay.com/webservices/latest/eBaySvc.wsdl', array('trace' => 1, 'features' => SOAP_SINGLE_ELEMENT_ARRAYS)); $header = new SoapHeader('urn:ebay:apis:eBLBaseComponents', 'RequesterCredentials', new SoapVar(array('ebayAuthToken' => $token),

Is it possible to get the eBay Category List via an API programmatically?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 12:06:21
My goal is to get a list of eBay categories programmatically. It appears that the GetCategories method is only available from the Trading API. If I understand correctly, there is user interaction required to log into the Trading API: http://developer.ebay.com/DevZone/XML/docs/HowTo/Tokens/GettingTokens.html Is there another method to get the eBay categories list programmatically? I'm using Drupal 7, so PHP. You do not need a token to get the categories. All you need is your App-ID The link below with your APP-ID will return the XML category listing from site: UK (siteid=3) Setting CategoryID=

how to use python xml.etree.ElementTree to parse eBay API response?

倖福魔咒の 提交于 2019-12-03 16:40:34
I am trying to use xml.etree.ElementTree to parse responses from eBay finding API, findItemsByProduct. After lengthy trial and error, I came up with this code which prints some data: import urllib from xml.etree import ElementTree as ET appID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' isbn = '3868731342' namespace = '{http://www.ebay.com/marketplace/search/v1/services}' url = 'http://svcs.ebay.com/services/search/FindingService/v1?' \ + 'OPERATION-NAME=findItemsByProduct' \ + '&SERVICE-VERSION=1.0.0' \ + '&GLOBAL-ID=EBAY-DE' \ + '&SECURITY-APPNAME=' + appID \ + '&RESPONSE-DATA-FORMAT=XML' \ + '