#NEWLINE# def get_provider_user_id( response , **kwargs ) : #NEWLINE# #INDENT# if response : #NEWLINE# #INDENT# auth = linkedin . LinkedInAuthentication ( None , None , None , None ) #NEWLINE# auth . token = AccessToken ( response [ 'access_token' ] , response [ 'expires_in' ] ) #NEWLINE# api = linkedin . LinkedInApplication ( auth ) #NEWLINE# profile = api . get_profile ( selectors = selectors ) #NEWLINE# return profile [ 'id' ] #NEWLINE# #UNINDENT# return None