#NEWLINE# def get_new_token( self ) : #NEWLINE# #INDENT# '\n        Get a new token. Generally used when no previous token exists or there\n        is no refresh token\n\n        :return:  Dictionary containing token information\n        :rtype:   ``dict``\n        ' #NEWLINE# code = self . get_code ( ) #NEWLINE# token_request = { #NEWLINE# #INDENT# 'code' : code , #NEWLINE# 'client_id' : self . user_id , #NEWLINE# 'client_secret' : token_request . key , #NEWLINE# 'redirect_uri' : self . redirect_uri , #NEWLINE# 'grant_type' : 'authorization_code' , #NEWLINE# #UNINDENT# } #NEWLINE# return self . _token_request ( token_request )