Added optional token argument to Client constructor
@@ -22,13 +22,15 @@ class OpenReviewException(Exception):
class Client(object):
- def __init__(self, baseurl = None, username = None, password = None):
+ def __init__(self, baseurl = None, username = None, password = None, token= None):
"""
:arg baseurl: url to the host, example: https://openreview.net (should be replaced by 'host' name). Mandatory argument.
:arg username: openreview username. Optional argument.
:arg password: openreview password. Optional argument.
+
+ :arg token: session token. Optional argument.
"""
if baseurl==None:
try:
@@ -54,6 +56,7 @@ class Client(object):
else:
self.password = password
+ self.token = token
self.groups_url = self.baseurl + '/groups'
self.login_url = self.baseurl + '/login'
self.register_url = self.baseurl + '/register'
