#NEWLINE# def set_data( self , auth_data = None ) : #NEWLINE# #INDENT# if ( auth_data is None ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# if ( 'remeber' in auth_data ) : #NEWLINE# #INDENT# self . __remember = auth_data . get ( 'remember' ) #NEWLINE# #UNINDENT# if ( 'token_type' in auth_data ) : #NEWLINE# #INDENT# self . __token_type = auth_data . get ( 'token_type' ) #NEWLINE# #UNINDENT# if ( 'owner_id' in auth_data ) : #NEWLINE# #INDENT# self . __owner_id = auth_data . get ( 'owner_id' ) #NEWLINE# #UNINDENT# if ( 'scope' in auth_data ) : #NEWLINE# #INDENT# self . __scope = auth_data . get ( 'scope' ) #NEWLINE# #UNINDENT# if ( 'access_token' in auth_data ) : #NEWLINE# #INDENT# self . __access_token = auth_data . get ( 'access_token' ) #NEWLINE# #UNINDENT# if ( 'expires_in' in auth_data ) : #NEWLINE# #INDENT# self . __expires_in = auth_data . get ( 'expires_in' ) #NEWLINE# #UNINDENT# if ( ( 'expire_time' not in auth_data ) and ( 'expires_in' in auth_data ) ) : #NEWLINE# #INDENT# self . __expire_time = ( time ( ) + auth_data . get ( 'expires_in' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'expire_time' in auth_data ) : #NEWLINE# #INDENT# self . __expire_time = auth_data . get ( 'expire_time' ) #NEWLINE# #UNINDENT# #UNINDENT# if ( 'refresh_token' in auth_data ) : #NEWLINE# #INDENT# self . __refresh_token = auth_data . get ( 'refresh_token' ) #NEWLINE# #UNINDENT# if ( 'refresh_token_expires_in' in auth_data ) : #NEWLINE# #INDENT# self . __refresh_token_expires_in = auth_data . get ( 'refresh_token_expires_in' ) #NEWLINE# #UNINDENT# if ( ( 'refresh_token_expire_time' not in auth_data ) and ( 'refresh_token_expires_in' in auth_data ) ) : #NEWLINE# #INDENT# self . __refresh_token_expire_time = ( time ( ) + auth_data . get ( 'refresh_token_expires_in' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'refresh_token_expire_time' in auth_data ) : #NEWLINE# #INDENT# self . __refresh_token_expire_time = auth_data . get ( 'refresh_token_expire_time' ) #NEWLINE# #UNINDENT# #UNINDENT# return self