<s> from social . backends . oauth import BaseOAuth2 <EOL> class ChangeTipOAuth2 ( BaseOAuth2 ) : <EOL> """<STR_LIT>""" <EOL> name = '<STR_LIT>' <EOL> AUTHORIZATION_URL = '<STR_LIT>' <EOL> ACCESS_TOKEN_URL = '<STR_LIT>' <EOL> ACCESS_TOKEN_METHOD = '<STR_LIT:POST>' <EOL> SCOPE_SEPARATOR = '<STR_LIT:U+0020>' <EOL> def get_user_details ( self , response ) : <EOL> """<STR_LIT>""" <EOL> return { <EOL> '<STR_LIT:username>' : response [ '<STR_LIT:username>' ] , <EOL> '<STR_LIT:email>' : response . get ( '<STR_LIT:email>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> def user_data ( self , access_token , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return self . get_json ( '<STR_LIT>' , params = { <EOL> '<STR_LIT>' : access_token <EOL> } ) </s>
