本文整理汇总了Python中wechat_sdk.WechatBasic.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python WechatBasic.__init__方法的具体用法?Python WechatBasic.__init__怎么用?Python WechatBasic.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wechat_sdk.WechatBasic
的用法示例。
在下文中一共展示了WechatBasic.__init__方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from wechat_sdk import WechatBasic [as 别名]
# 或者: from wechat_sdk.WechatBasic import __init__ [as 别名]
def __init__(self, app_id, app_secret, app_token, store, encrypt_mode='normal'):
conf = WechatConf(
appid=app_id,
appsecret=app_secret,
token=app_token,
encrypt_mode=encrypt_mode,
access_token_getfunc=self.get_access_token_func,
jsapi_ticket_getfunc=self.get_jsapi_ticket_func,
)
WechatBasic.__init__(self, conf=conf)
self.__app_id = app_id
self.__app_secret = app_secret
self.__app_token = app_token
self.__store = store
示例2: __init__
# 需要导入模块: from wechat_sdk import WechatBasic [as 别名]
# 或者: from wechat_sdk.WechatBasic import __init__ [as 别名]
def __init__(self, component_app_id, component_app_secret,
app_token, encoding_aes_key, store, encrypt_mode='safe', client_app_id=None):
conf = WechatConf(
appid=component_app_id,
appsecret=component_app_secret,
token=app_token,
encrypt_mode=encrypt_mode,
encoding_aes_key=encoding_aes_key,
access_token_getfunc=self.token_get_func
)
WechatBasic.__init__(self, conf=conf)
self.__component_app_id = component_app_id
self.__component_app_secret = component_app_secret
self.__store = store
self.__client_app_id = client_app_id