(self, app)
:type app: wechat_django.models.WeChatApp
:type app: wechat_django.models.WeChatApp
: type app : wechat_django . models . WeChatApp
def __init__(self, app):
        """:type app: wechat_django.models.WeChatApp"""
        session = import_string(settings.SESSIONSTORAGE)
        if callable(session):
            session = session(app)
        self.app = app
        if app.configurations.get("ACCESSTOKEN_URL"):
            self.ACCESSTOKEN_URL = app.configurations["ACCESSTOKEN_URL"]
        super(WeChatClient, self).__init__(
            app.appid, app.appsecret, session=session)
def __init__ ( self , app ) : session = import_string ( settings . SESSIONSTORAGE ) if callable ( session ) : session = session ( app ) self . app = app if app . configurations . get ( "ACCESSTOKEN_URL" ) : self . ACCESSTOKEN_URL = app . configurations [ "ACCESSTOKEN_URL" ] super ( WeChatClient , self ) . __init__ ( app . appid , app . appsecret , session = session )