Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- import os
- from ebaysdk.exception import ConnectionError
- from ebaysdk.shopping import Connection as Shopping
- try:
- api = Shopping(debug=True, domain='svcs.sandbox.ebay.com', config_file= 'ebay.yaml')
- response = api.execute('FindPopularItems', {'QueryKeywords': 'Python'})
- print(response.dict())
- except ConnectionError as e:
- print(e)
- print(e.response.dict())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement