def __init__(self, app_id, secret, redirect_uri, scope='<STR_LIT>', state='<STR_LIT>'):
self.app_id = app_id<EOL>self.secret = secret<EOL>self.redirect_uri = redirect_uri<EOL>self.scope = scope<EOL>self.state = state<EOL>self._http = requests.Session()<EOL>
:param app_id: 微信公众号 app_id
:param secret: 微信公众号 secret
:param redirect_uri: OAuth2 redirect URI
:param scope: 可选，微信公众号 OAuth2 scope，默认为 ``snsapi_base``
:param state: 可选，微信公众号 OAuth2 state