admin管理员组

文章数量:1323723

i want to write a python program that lists all items of a specific seller, regardless what it is.

my code looks like this: .....

headers = {
        'Authorization': f'Bearer {ACCESS_TOKEN}',
        'X-EBAY-C-MARKETPLACE-ID': 'EBAY_DE',
        'Content-Type': 'application/json',
    }
# Query parameters
params = {
   'q': 'D',           # q is somehow needed !? empty string does not work, without q i get an error, D is just for a test*
   'filter': 'sellers:{<sellername>}', 
   'limit': limit,
   'sort': 'endingSoonest', 
}

try:
    response = requests.get(BASE_URL, headers=headers, params=params)

......

i just want to list all articles of a seller. this means the q parameter should be empty > match all articles.

but the problem is: the request call needs somehow a "q" query parameter. without q parameter i get an errorcode 12001. when q = "" (empty), i do not get an output. in the example above i set q to some value to test it.

how can i manage that?

本文标签: ebay browse api gt articles for a specific sellerStack Overflow