#NEWLINE# def login( self , email , password ) : #NEWLINE# #INDENT# '\n        Logins user, and returns the response received by the server.\n        ' #NEWLINE# data = self . _post ( 'login' , data = { #NEWLINE# #INDENT# 'email' : email , #NEWLINE# 'password' : password , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( 'token' in data ) : #NEWLINE# #INDENT# self . token = data [ 'token' ] #NEWLINE# #UNINDENT# return self