def __init__(self,<EOL>component_appid,<EOL>component_appsecret,<EOL>component_token,<EOL>encoding_aes_key,<EOL>session=None,<EOL>auto_retry=True):
self._http = requests.Session()<EOL>self.component_appid = component_appid<EOL>self.component_appsecret = component_appsecret<EOL>self.expires_at = None<EOL>self.crypto = WeChatCrypto(<EOL>component_token, encoding_aes_key, component_appid)<EOL>self.session = session or MemoryStorage()<EOL>self.auto_retry = auto_retry<EOL>if isinstance(session, six.string_types):<EOL><INDENT>from shove import Shove<EOL>from wechatpy.session.shovestorage import ShoveStorage<EOL>querystring = get_querystring(session)<EOL>prefix = querystring.get('<STR_LIT>', ['<STR_LIT>'])[<NUM_LIT:0>]<EOL>shove = Shove(session)<EOL>storage = ShoveStorage(shove, prefix)<EOL>self.session = storage<EOL><DEDENT>
:param component_appid: 第三方平台appid
:param component_appsecret: 第三方平台appsecret
:param component_token: 公众号消息校验Token
:param encoding_aes_key: 公众号消息加解密Key