def createDAsession():
'''Create a DeviantArt session using The Client Credentials access by Backend Application Flow from oauthlib.oauth2 and OAuth2Session from Requests-OAuthlib '''
global client_id, client_secret, deviantart_client, deviantart_session, token
deviantart_session = OAuth2Session(client = deviantart_client)
token=get_token()
deviantart_session = OAuth2Session(client_id, token=token)
评论列表
文章目录