def get_token_by_code(self, code):
url = '<STR_LIT>'<EOL>data = {'<STR_LIT>': self.client_id,<EOL>'<STR_LIT>': self.client_secret,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:code>': code,<EOL>'<STR_LIT>': self.redirect_uri}<EOL>r = requests.post(url, data=data)<EOL>check_error(r)<EOL>return r.json()<EOL>
return origin json