timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
808 stars 326 forks source link

multiple aspect filters #299

Closed Olimhon31 closed 4 years ago

Olimhon31 commented 4 years ago
response = api.execute('findItemsAdvanced',    {'keywords':'macbook',
                                                    'paginationInput': {
                                                    'entriesPerPage': '10',
                                                    "pageNumber": '1'
                                                    },

'aspectFilter':[{'aspectName': 'Series', 'aspectValueName': 'MacBook Air'},
{'aspectName': 'Processor', 'aspectValueName': 'AMD A10'}]
}
return response.dict()

this code is giving me 0 product because of multiple aspect filters.Is there any solution for it?

fsmosca commented 4 years ago

Use name instead of aspectName and use value instead of aspectValueName.

Something like below.

'aspectFilter':[{'name': 'Series', 'value': 'MacBook Air'},
{'name': 'Processor', 'value': 'AMD A10'}]
Olimhon31 commented 4 years ago

@fsmosca thank you!!!

fsmosca commented 4 years ago

Please close this issue, if it works.

fsmosca commented 4 years ago

The use of name/value in aspectFilter is actually wrong, see https://github.com/timotheus/ebaysdk-python/issues/310#issuecomment-643040007