forked from timotheus/ebaysdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
HTML class
timotheus edited this page Feb 14, 2013
·
2 revisions
This HTML class can be used to make traditional HTTP/REST calls.
##Usage
from ebaysdk import html
api = html()
api.execute('https://github.com/timotheus/ebaysdk-python/wiki.atom')
print api.response_dict()
Keyword arguments to html() constructor
debug -- debugging enabled (default: False)
method -- GET/POST/PUT (default: GET)
proxy_host -- proxy hostname
proxy_port -- proxy port number
timeout -- HTTP request timeout (default: 20)
parallel -- ebaysdk parallel object
Execute the HTTP request.
api.execute('https://github.com/timotheus/ebaysdk-python/wiki.atom', {'arg1': 'val1'})
Returns a string of the HTTP call errors
if api.error():
print "has errors: %s" % api.error()
Return a DOM object (xml.dom.minidom) of the HTTP response content.
Return a dictionary of the HTTP response content.
Returns the string content from HTTP response call.
Returns a BeautifulSoup object of the response
Returns the HTTP response code.
Returns the HTTP response status