#NEWLINE# def user_data( self , token , * args , **kwargs ) : #NEWLINE# #INDENT# 'Loads user data from service' #NEWLINE# url = 'https://nodeapi.classlink.com/v2/my/info' #NEWLINE# auth_header = { #NEWLINE# #INDENT# 'Authorization' : ( 'Bearer %s' % token ) , #NEWLINE# #UNINDENT# } #NEWLINE# try : #NEWLINE# #INDENT# return self . get_json ( url , headers = auth_header ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# return None