Esempio n. 1
0
    def __init__(self,
                 api_key,
                 app_id,
                 app_secret,
                 session_key=None,
                 secret=None,
                 uid=None,
                 format='JSON',
                 mode='async',
                 name=None,
                 **_k):
        self.api_key = api_key
        self.app_id = app_id
        self.app_secret = app_secret
        self.session_key = session_key
        self.secret = secret
        self.format = format
        self.mode = mode
        self.name = name

        self.uid = uid

        self.logged_in = bool(session_key and secret and uid)
        self.httpmaster = common.asynchttp.HttpMaster()
        AttrChain.__init__(self, 'facebook')
Esempio n. 2
0
    def __init__(self, api_key, app_id, app_secret, session_key=None, secret=None, uid=None, format='JSON',
                 mode='async', name=None, **_k):
        self.api_key = api_key
        self.app_id = app_id
        self.app_secret = app_secret
        self.session_key = session_key
        self.secret = secret
        self.format = format
        self.mode = mode
        self.name = name

        self.uid = uid

        self.logged_in = bool(session_key and secret and uid)
        self.httpmaster = common.asynchttp.HttpMaster()
        AttrChain.__init__(self, 'facebook')
Esempio n. 3
0
 def __init__(self, opener, session_token, user_id):
     AttrChain.__init__(self)
     self.opener = opener
     self.session_token = session_token
     self.user_id = user_id
     log.info('Tagged realtime initialized')
Esempio n. 4
0
 def __init__(self, opener, session_token, user_id):
     AttrChain.__init__(self)
     self.opener = opener
     self.session_token = session_token
     self.user_id = user_id
     log.info('Tagged realtime initialized')
Esempio n. 5
0
 def __init__(self, opener, session_token):
     AttrChain.__init__(self, 'tagged')
     self.opener = opener
     self.session_token = session_token
     log.info('Tagged api initialized')
Esempio n. 6
0
 def __init__(self, opener, session_token):
     AttrChain.__init__(self, 'tagged')
     self.opener = opener
     self.session_token = session_token
     log.info('Tagged api initialized')