使用eBay令牌认证已经挣扎了几天.我发现很难理解如何获取新令牌,在注册开发者计划帐户后,我请求了密钥集并获得了它们,之后我授权访问Auth'n'Auth令牌,该令牌有望持续18个月,是的,令牌仅适用于交易,购物和寻找API.
但是当你需要执行购买,销售和商业API时,你必须获得oauth令牌.您可以执行所谓的"单用户应用程序"样式并从用户令牌工具登录oauth,并获得2小时到期的oauth.
稍后,令牌过期,你有点失去了上面提到的api的访问权限.我尝试从交易>获取会话ID,交易>获取令牌中获取令牌,但在向Fetch令牌提供会话ID后,它说:"最终用户尚未完成Auth&Auth签名流程." 虽然有一个有效的18个月令牌,但它会一直返回此错误.
有没有关于此的任何示例文章,任何人都可能阅读或写过?
我在Linux环境下使用Python 2.7,我的应用程序使用ebay交易API和sdk:ebaysdk-python.我的目标是列出一个fixedpriceitem,我没有找到一个正确的方法来做到这一点......
似乎ebay网站上的开发人员的例子也不起作用.
这是我尝试的:
def AddFixedPriceItem(log,country):
try:
try:
t = Connection(config_file='ebay.yaml',debug=True)
except Exception:
t = Connection(config_file='../ebay.yaml',debug=True)
myitem = {
'ErrorLanguage': 'en_US',
'WarningLevel': 'High',
'Item': {
'PayPalEmailAddress': 'paypal@xxx.it',
'ShipToLocations': 'IT',
'ReservePrice': '0.0',
'Title': 'TEST AUCTION 1',
'Description': 'TEST AuCTION 1',
'ProxyItem': 'false',
'HitCounter': 'NoHitCounter',
'BuyerRequirementDetails': {
'ShipToRegistrationCountry': 'true'
},
'Location': 'Lombardia',
'ReturnPolicy': {
'ReturnsWithin': '30 giorni',
'Description': 'Puoi rendere il prodotto che non ti soddisfa entro e non oltre 30 giorni di calendario dalla data di consegna. Ti invitiamo …
Run Code Online (Sandbox Code Playgroud) 我想从<Version>
嵌套在<service>
WSDL块中的元素中获取文本.有问题的WSDL是Ebay的交易 api.有问题的片段看起来像这样:
<wsdl:service name="eBayAPIInterfaceService">
<wsdl:documentation>
<Version>941</Version>
</wsdl:documentation>
<wsdl:port binding="ns:eBayAPISoapBinding" name="eBayAPI">
<wsdlsoap:address location="https://api.ebay.com/wsapi"/>
</wsdl:port>
</wsdl:service>
Run Code Online (Sandbox Code Playgroud)
我现在正在这样做:
$xml = new DOMDocument();
$xml->load($this->wsdl);
$version = $xml->getElementsByTagName('Version')->item(0)->nodeValue;
Run Code Online (Sandbox Code Playgroud)
这有效,但我想知道是否有一种方法可以使用PHP的SOAP扩展本地获取它?
我在想以下内容会起作用,但事实并非如此:
$client = new SoapClient($this->wsdl);
$version = $client->eBayAPIInterfaceService->Version;
Run Code Online (Sandbox Code Playgroud) 如何使用eBay API获取大型商品图片?当我使用galleryURL时,下面的API调用返回缩略图图像.我尝试用PictureURLLarge替换它,但是没有返回URL.
(我指的是从底部开始的第16行:$ pic = $ item-> galleryURL;)
// API request variables
$endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1'; // URL to call
$version = '1.11.0'; // API version supported by your application
$appid = 'XXXXX'; // Replace with your own AppID
$globalid = 'EBAY-US'; // Global ID of the eBay site you want to search (e.g., EBAY-DE)
$query = "soft thin (shirt, tshirt, t-shirt)"; // Supply your own query
$safequery = urlencode($query); // Make the query URL-friendly
$i = …
Run Code Online (Sandbox Code Playgroud) 我是eBay API的新手,目前正在使用PHP开发,我已经设法使用GetItem将基于Item ID的订单详细信息导入到我的网站数据库中.但我现在要做的是将用户帐户链接到我的网站并将其列表导入我的数据库.我已经把我用于GetItem的代码(下面),但现在我卡住了,我不知道要使用什么,GetAccount,GetUser或GetSellerList:
第一:让我的用户从我的网站重定向到eBay,以授权我的应用程序访问他/她的列表.
第二:在我的网站上导入该列表(现在已经足够了).
这是我的GetItem代码:
require_once('keys.php');
require_once('eBaySession.php');
if(isset($_POST['Id']))
{
//Get the ItemID inputted
$id = $_POST['Id'];
//SiteID must also be set in the Request's XML
//SiteID = 0 (US) - UK = 3, Canada = 2, Australia = 15, ....
//SiteID Indicates the eBay site to associate the call with
$siteID = 101;
//the call being made:
$verb = 'GetItem';
///Build the request Xml string
$requestXmlBody = '<?xml version="1.0" encoding="utf-8" ?>';
$requestXmlBody .= '<GetItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">';
$requestXmlBody .= …
Run Code Online (Sandbox Code Playgroud) 对于移动应用程序,我们很乐意整合eBay Kleinanzeigen(www.ebay-kleinanzeigen.de)API.目标是(API GET
)获取特定(德国)邮政编码中的所有分类.
但是文档不是很有用.
此API下的API https://api.ebay-kleinanzeigen.de/api/ads
请求登录名和密码.我们使用username
和password
从www.ebay-kleinanzeigen.de和eBay的合作伙伴(开发者)的登录凭据,但两者都没有工作.
有谁知道如何使用它以及我们需要使用哪些凭据或具有此API的经验?
在ebay Order API - initiateCheckoutSession(访客结账)中,添加信用卡信息会返回错误.我在沙盒环境中测试.
API:https://api.sandbox.ebay.com/buy/order/v1/guest_checkout_session/initiate 请求机构:
{
"creditCard":
{
"accountHolderName": "Frank Smith",
"cardNumber": "5100000001598174",
"cvvNumber": "012",
"expireMonth": 10,
"expireYear": 2019,
"brand": "MASTERCARD",
"billingAddress":
{
"firstName": "Frank",
"lastName": "Smith",
"addressLine1": "3737 Any St",
"city": "San Jose",
"stateOrProvince": "CA",
"postalCode": "95134",
"country": "US"
}
},
"contactEmail": "fsmith1234@anymail.com",
"contactFirstName": "Frank",
"contactLastName": "Smith",
"shippingAddress": {
"recipient": "Frank Smith",
"phoneNumber": "617 555 1212",
"addressLine1": "3737 Any St",
"city": "San Jose",
"stateOrProvince": "CA",
"postalCode": "95134",
"country": "US"
},
"lineItemInputs": [
{
"quantity": …
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Ebay提供的大型商家服务API将文件上传到ebay上.
他们提供了相同的sample.jar文件.当我们在命令提示符下执行.jar文件时似乎工作正常,但是当我尝试将其源代码集成到我的Web应用程序中时,它给了我这个错误.此外,我尝试使用netbeans创建一个Web服务客户端并尝试使用它,但它仍然给了我同样的错误.我还将SOAP版本从1.1更改为1.2,但这似乎也不起作用.以下是完整的堆栈跟踪.
Nov 11, 2011 2:59:41 PM com.sun.xml.internal.messaging.saaj.soap.MessageImpl init
SEVERE: SAAJ0533: Cannot create message: incorrect content-type for SOAP version. Got text/xml; charset=UTF-8, but expected application/soap+xml
Nov 11, 2011 2:59:41 PM com.sun.xml.internal.messaging.saaj.soap.MessageImpl init
SEVERE: SAAJ0535: Unable to internalize message
Exception in thread "main" javax.xml.ws.WebServiceException: Couldn't create SOAP message due to exception: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.internal.ws.util.SOAPConnectionUtil.getSOAPMessage(SOAPConnectionUtil.java:83)
at com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toSOAPMessage(SOAPXMLDecoder.java:102)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:440)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:260)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
at $Proxy28.createUploadJob(Unknown Source)
at com.SwiftConnectV1.fileprocess.LMS.BulkDataExchangeActions.createUploadJob(BulkDataExchangeActions.java:138)
at com.SwiftConnectV1.fileprocess.LMS.LMSClientJobs.createUploadJob(LMSClientJobs.java:154)
at com.SwiftConnectV1.fileprocess.LMS.LMSSample.main(LMSSample.java:74) …
Run Code Online (Sandbox Code Playgroud) 我试图调用https://api.ebay.com/sell/inventory/v1/bulk_migrate_listing,然后响应代码是 2003
我的要求是:
{
"requests": [
{
"listingId": "160009220563"
}
]
}
Run Code Online (Sandbox Code Playgroud)
像这样的响应体:
{
"errors": [
{
"errorId": 2003,
"domain": "ACCESS",
"category": "APPLICATION",
"message": "Internal error",
"longMessage": "There was a problem with an eBay internal system or process. Contact eBay developer support for assistance",
"parameters": [
{
"name": "reason",
"value": "Failed to transform underlying error response, see logs."
}
]
}
]
}
Run Code Online (Sandbox Code Playgroud)