def authorize_url(self, redirect_uri, state=None):
redirect_uri = six.moves.urllib.parse.quote(redirect_uri, safe=b'<STR_LIT>')<EOL>url_list = [<EOL>self.OAUTH_BASE_URL,<EOL>'<STR_LIT>',<EOL>self._client.corp_id,<EOL>'<STR_LIT>',<EOL>redirect_uri,<EOL>'<STR_LIT>',<EOL>]<EOL>if state:<EOL><INDENT>url_list.extend(['<STR_LIT>', state])<EOL><DEDENT>url_list.append('<STR_LIT>')<EOL>return '<STR_LIT>'.join(url_list)<EOL>
构造网页授权链接
详情请参考
https://work.weixin.qq.com/api/doc#90000/90135/91022

:param redirect_uri: 授权后重定向的回调链接地址
:param state: 重定向后会带上 state 参数
:return: 返回的 JSON 数据包