question

emberem-0 avatar image
0 Likes"
emberem-0 asked

How to Implement "GetSellerList" with python.

I have this code. I am just trying to implement the "GetSellerList" with python. I don't know how to implement it. Am I doing it right? How can I get the list of items from a specific seller?

I'm getting this error by the way:

    raise InvalidHeader("Value for header {%s: %s} must be of type str or "
requests.exceptions.InvalidHeader: Value for header {X-EBAY-API-DEV-NAME: None} must be of type str or bytes, not <class 'NoneType'>



from ebaysdk.trading import Connection
ID_APP = 'xxxxxxx'
Keywords = "computer"

api = Connection(appid=ID_APP,siteid="EBAY-GB", config_file=None)

api_request = { 'keywords': Keywords,"outputSelector":"SellerInfo",'itemFilter': [    {
  'name': 'CategoryID',    'value': 'impactfurnitureltd'},    {
  'name': 'EndTimeFrom',    'value': "2004-08-04T19:09:02.768Z"},    {
  'name': 'EndTimeTo',    'value': "2007-08-04T19:09:02.768Z"}]}

#response = api.execute('findItemsAdvanced', {"keywords":'legos'})#print(response.content)

response = api.execute('GetSellerList',api_request)

print(response)

apipythonebaysdk-pythonapi-python
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.

0 Answers

· Write an Answer

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.