X-Git-Url: https://jfr.im/git/z_archive/twitter.git/blobdiff_plain/68b3e2ee0983e0827d5d2600bffa00f47bb12959..1cc9ab0b8a70466bf8cf684fdab28aad342696c8:/twitter/api.py diff --git a/twitter/api.py b/twitter/api.py index a003b28..1e249d5 100644 --- a/twitter/api.py +++ b/twitter/api.py @@ -184,7 +184,7 @@ class Twitter(TwitterCall): def __init__( self, email=None, password=None, format="json", domain="api.twitter.com", agent=None, secure=True, auth=None, - api_version=1): + api_version=''): """ Create a new twitter API connector. @@ -205,11 +205,15 @@ class Twitter(TwitterCall): header. This is deprecated. Instead Twitter determines the application using the OAuth Client Key and Client Key Secret parameters. + + `api_version` is used to set the base uri. By default it's + nothing, but if you set it to '1' your URI will start with + '1/'. """ if email is not None or password is not None: if auth: - raise ( + raise ValueError( "Can't specify 'email'/'password' and 'auth' params" " simultaneously.") auth = UserPassAuth(email, password)