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