#NEWLINE# def getToken( self , code ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'grant_type' : 'authorization_code' , #NEWLINE# 'code' : code , #NEWLINE# 'client_id' : self . clientId , #NEWLINE# 'client_secret' : self . clientSecret , #NEWLINE# 'redirect_uri' : self . redirectUri , #NEWLINE# #UNINDENT# } #NEWLINE# resp = self . _getJson ( method = 'POST' , url = self . _TOKEN_URL , data = params , headers = { #NEWLINE# #INDENT# 'Accept' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# return resp