def get_client_by_appid(self, authorizer_appid):
access_token_key = '<STR_LIT>'.format(authorizer_appid)<EOL>refresh_token_key = '<STR_LIT>'.format(authorizer_appid)<EOL>access_token = self.session.get(access_token_key)<EOL>refresh_token = self.session.get(refresh_token_key)<EOL>assert refresh_token<EOL>if not access_token:<EOL><INDENT>ret = self.refresh_authorizer_token(<EOL>authorizer_appid,<EOL>refresh_token<EOL>)<EOL>access_token = ret['<STR_LIT>']<EOL>refresh_token = ret['<STR_LIT>']<EOL>access_token_key = '<STR_LIT>'.format(authorizer_appid)<EOL>expires_in = <NUM_LIT><EOL>if '<STR_LIT>' in ret:<EOL><INDENT>expires_in = ret['<STR_LIT>']<EOL><DEDENT>self.session.set(access_token_key, access_token, expires_in)<EOL><DEDENT>return WeChatComponentClient(<EOL>authorizer_appid,<EOL>self,<EOL>session=self.session<EOL>)<EOL>
通过 authorizer_appid 获取 Client 对象

:params authorizer_appid: 授权公众号appid