(self, email, password)
return resp
User login
User login
User login
def login(self, email, password):
        """User login"""
        url_path = '/api/login'
        payload = dict(email=email, password=password)
        r = self.call(url_path, data=payload)
        resp = r.json()
        if resp.get('short_url'):
            resp['short_url'] = self.makeurl(self.HOSTNAME, resp['short_code'])
        return resp
def login ( self , email , password ) : url_path = '/api/login' payload = dict ( email = email , password = password ) r = self . call ( url_path , data = payload ) resp = r . json ( ) if resp . get ( 'short_url' ) : resp [ 'short_url' ] = self . makeurl ( self . HOSTNAME , resp [ 'short_code' ] ) return resp