Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2016
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import datetime
  2. import os
  3. from ebaysdk.exception import ConnectionError
  4. from ebaysdk.shopping import Connection as Shopping
  5.  
  6. try:
  7.     api = Shopping(debug=True, domain='svcs.sandbox.ebay.com', config_file= 'ebay.yaml')
  8.  
  9.  
  10.     response = api.execute('FindPopularItems', {'QueryKeywords': 'Python'})
  11.     print(response.dict())
  12.  
  13. except ConnectionError as e:
  14.     print(e)
  15.     print(e.response.dict())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement