当前位置: 首页>>代码示例>>Python>>正文


Python WechatBasic.__init__方法代码示例

本文整理汇总了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
开发者ID:huzhennan,项目名称:django_wechat_test,代码行数:16,代码来源:we.py

示例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
开发者ID:huzhennan,项目名称:django_wechat_test,代码行数:17,代码来源:we3rd.py


注:本文中的wechat_sdk.WechatBasic.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。