Käynnissä

Help with simple Ebay API call in Python

Hi

I got the below code for my ebay api python script:

import json

import requests

search_term = "electronic components"

url = ('[login to view URL]\

?OPERATION-NAME=findItemsByKeywords\

&SortOrder=PricePlusShippingLowest\

&buyerPostalCode=92128&SERVICE-VERSION=1.13.0\

&SECURITY-APPNAME= "hiddenkey" &RESPONSE-DATA-FORMAT=JSON\

&REST-PAYLOAD\

&itemFilter(0).name=Condition\

&itemFilter(1).name=MaxPrice\

&itemFilter(1).value=500.0\

&itemFilter(1).paramName=Currency\

&itemFilter(1).paramValue=USD\

&keywords=' + search_term)

apiResult = [login to view URL](url)

parseddoc = [login to view URL]()

print (parseddoc)

the response im getting is:

{'findItemsByKeywordsResponse': [{'ack': ['Failure'], 'errorMessage': [{'error': [{'errorId': ['46'], 'domain': ['Marketplace'], 'severity': ['Error'], 'category': ['Request'], 'message': ['Value is required for item filter, CONDITION.'], 'subdomain': ['Search'], 'parameter': ['CONDITION']}]}], 'version': ['1.13.0'], 'timestamp': ['2018-09-01T21:38:52.050Z']}]}

Please place a bid if you worked with ebay api before and you know how to solve that.

Taidot: API, eBay, Python

Näytä lisää: ebay api javascript send xml, php ebay api bid, best ebay api review, python script to search ebay, python ebay scraper, ebay api examples, django ebay api, ebay trading api, ebay python examples, ebay sdk python, ebaysdk python examples, ebay api ecommerce, ebay api scripts, ebay api change shipping details, ebay api setup, ebay api change shipping options, ebay api listings, ebay api simple, ebay api python, ebay api bidding python

Tietoa työnantajasta:
( 22 arvostelua ) Birmingham, United Kingdom

Projektin tunnus: #17685987

1 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_23% %project_currencyDetails_sign_sub_24% tähän työhön

$35 USD 3 päivässä
(0 arvostelua)
0.0