#NEWLINE# def get_provider_user_id( response , **kwargs ) : #NEWLINE# #INDENT# if kwargs : #NEWLINE# #INDENT# credentials = googleoauth . AccessTokenCredentials ( access_token = response [ 'access_token' ] , user_agent = '' ) #NEWLINE# profile = _get_api ( credentials ) . userinfo ( ) . get ( ) . execute ( ) #NEWLINE# return profile [ 'id' ] #NEWLINE# #UNINDENT# return None