'Set up the API module.
@param http_proxy: Optional, default: "".
Use an HTTP proxy for HTTP connections. Proxy support for
HTTPS is not available yet.
Format: "hostname:port" (e.g., "localhost:8080")
@type http_proxy: str
@param tries: Optional, default: 3.
Try the specified number of times when downloading a monitored
document fails. tries must be >= 1. See also wait_seconds.
@type tries: int
@param wait_seconds: Optional, default: 3.
Wait the specified number of seconds before re-trying to
download a monitored document. wait_seconds must be >= 0.
See also tries.
@type wait_seconds: int
@param user_agent: Optional, default: "DeliciousAPI/<version>
(+http://www.michael-noll.com/wiki/Del.icio.us_Python_API)".
The User-Agent HTTP Header to use when querying Delicous.com.
@type user_agent: str
@param timeout: Optional, default: 30.
Set network timeout. timeout must be >= 0.
@type timeout: int'

def __init__(self, http_proxy='', tries=3, wait_seconds=3, user_agent=('DeliciousAPI/%s    (+http://www.michael-noll.com/wiki/Del.icio.us_Python_API)' % __version__), timeout=30):

    assert (tries >= 1)
    assert (wait_seconds >= 0)
    assert (timeout >= 0)
    self.http_proxy = http_proxy
    self.tries = tries
    self.wait_seconds = wait_seconds
    self.user_agent = user_agent
    self.timeout = timeout
    socket.setdefaulttimeout(self.timeout)
