#NEWLINE# def _get_user_email( self , access_token ) : #NEWLINE# #INDENT# res = requests . get ( 'https://api.github.com/user/emails' , params = { #NEWLINE# #INDENT# 'access_token' : access_token , #NEWLINE# #UNINDENT# } ) #NEWLINE# emails = res . json ( ) #NEWLINE# if ( not emails ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# for email in emails : #NEWLINE# #INDENT# if email [ 'primary' ] : #NEWLINE# #INDENT# return emails [ 'email' ] #NEWLINE# #UNINDENT# #UNINDENT# return emails [ 0 ] [ 'email' ]