def eat_cookie(self, cookie): ServiceAccount.eat_cookie(self, cookie) self.email = cookie['email'] self.password = cookie['password'] if 'api_name' in cookie: self.api_name = cookie['api_name'] else: self.api_name = 'windows8'
def get_cookie(self): cookie = ServiceAccount.get_cookie(self) cookie.update({ 'password': self.password, 'sessionid': self.sessionid, 'friendlyname': self.friendlyname }) return cookie
def get_cookie(self): self._check_logged_in() cookie = ServiceAccount.get_cookie(self) cookie.update({ 'password': self.password, 'email': self.email, 'api_name': self.api_name }) return cookie
def eat_cookie(self, cookie): ServiceAccount.eat_cookie(self, cookie) self.password = cookie['password'] self.sessionid = cookie['sessionid'] self.friendlyname = cookie['friendlyname']
def __init__(self, username=None, password=None): ServiceAccount.__init__(self, username) self.password = password self.friendlyname = None
def __init__(self, username=None, password=None, api_name='ios'): ServiceAccount.__init__(self, username) self.password = password self.email = None self.api_name = api_name self.logger = logging.getLogger(__name__)