Example #1
0
 def __init__(
         self,
         app_id=None,
         app_secret=None,
         short_token=None,
         long_term_token=None,
         application_only_auth=False,
         initial_access_token=True,  # type: bool
         version=None,
         timeout=None,
         sleep_on_rate_limit=False,
         sleep_seconds_mapping=None,
         proxies=None,
         debug_http=False):
     BaseApi.__init__(self,
                      app_id=app_id,
                      app_secret=app_secret,
                      short_token=short_token,
                      long_term_token=long_term_token,
                      application_only_auth=application_only_auth,
                      initial_access_token=initial_access_token,
                      version=version,
                      timeout=timeout,
                      sleep_on_rate_limit=sleep_on_rate_limit,
                      sleep_seconds_mapping=sleep_seconds_mapping,
                      proxies=proxies,
                      debug_http=debug_http)
Example #2
0
    def __init__(self,
                 app_id=None,
                 app_secret=None,
                 short_token=None,
                 long_term_token=None,
                 instagram_business_id=None,
                 version=None,
                 timeout=None,
                 sleep_on_rate_limit=False,
                 sleep_seconds_mapping=None,
                 proxies=None,
                 debug_http=False):
        BaseApi.__init__(self,
                         app_id=app_id,
                         app_secret=app_secret,
                         short_token=short_token,
                         long_term_token=long_term_token,
                         version=version,
                         timeout=timeout,
                         sleep_on_rate_limit=sleep_on_rate_limit,
                         sleep_seconds_mapping=sleep_seconds_mapping,
                         proxies=proxies,
                         debug_http=debug_http)

        self.instagram_business_id = instagram_business_id
Example #3
0
 def __init__(self,
              app_id=None,
              app_secret=None,
              short_token=None,
              long_term_token=None,
              application_only_auth=False,
              version=None,
              timeout=None,
              sleep_on_rate_limit=False,
              proxies=None,
              debug_http=False):
     BaseApi.__init__(self,
                      app_id=app_id,
                      app_secret=app_secret,
                      short_token=short_token,
                      long_term_token=long_term_token,
                      application_only_auth=application_only_auth,
                      version=version,
                      timeout=timeout,
                      sleep_on_rate_limit=sleep_on_rate_limit,
                      proxies=proxies,
                      debug_http=debug_http)
 def __init__(
         self,
         app_id=None,
         app_secret=None,
         short_token=None,
         long_term_token=None,
         initial_access_token=True,
         timeout=None,  # type: Optional[int]
         sleep_on_rate_limit=False,  # type: bool
         sleep_seconds_mapping=None,  # type: Optional[Dict]
         proxies=None,  # type: Optional[dict]
         debug_http=False  # type: bool
 ):
     BaseApi.__init__(self,
                      app_id=app_id,
                      app_secret=app_secret,
                      short_token=short_token,
                      long_term_token=long_term_token,
                      timeout=timeout,
                      initial_access_token=initial_access_token,
                      sleep_on_rate_limit=sleep_on_rate_limit,
                      sleep_seconds_mapping=sleep_seconds_mapping,
                      proxies=proxies,
                      debug_http=debug_http)