def authorize_url(self, state='<STR_LIT>'):
url = '<STR_LIT>'<EOL>params = {<EOL>'<STR_LIT>': self.client_id,<EOL>'<STR_LIT>': '<STR_LIT:code>',<EOL>'<STR_LIT:state>': state,<EOL>'<STR_LIT>': self.redirect_uri<EOL>}<EOL>return url + urlencode(params)<EOL>
return user authorize url