def __init__(self, app_id, component_appid=None, component_access_token=None,<EOL>redirect_uri=None, scope='<STR_LIT>', state='<STR_LIT>', component=None):
self._http = requests.Session()<EOL>self.app_id = app_id<EOL>self.component = component<EOL>if self.component is None:<EOL><INDENT>warnings.warn('<STR_LIT>'<EOL>'<STR_LIT>',<EOL>DeprecationWarning, stacklevel=<NUM_LIT:2>)<EOL>self.component = ObjectDict({'<STR_LIT>': component_appid, '<STR_LIT>': component_access_token})<EOL><DEDENT>if redirect_uri is not None:<EOL><INDENT>warnings.warn('<STR_LIT>'<EOL>'<STR_LIT>',<EOL>DeprecationWarning, stacklevel=<NUM_LIT:2>)<EOL>self.authorize_url = self.get_authorize_url(redirect_uri, scope, state)<EOL><DEDENT>
:param app_id: 微信公众号 app_id
:param component: WeChatComponent