#NEWLINE# def user_data( self , access_token , * args , **kwargs ) : #NEWLINE# #INDENT# 'Grab user profile information from amazon.' #NEWLINE# response = self . get_json ( 'https://www.amazon.com/ap/user/profile' , params = { #NEWLINE# #INDENT# 'access_token' : access_token , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( 'Profile' in response ) : #NEWLINE# #INDENT# response = { #NEWLINE# #INDENT# 'user_id' : response [ 'Profile' ] [ 'CustomerId' ] , #NEWLINE# 'name' : response [ 'Profile' ] [ 'Name' ] , #NEWLINE# 'email' : response [ 'Profile' ] [ 'PrimaryEmail' ] , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return response