MCPcopy Create free account
hub / github.com/adobe/Marinus / __init__

Method __init__

python3_cron_scripts/libs3/FacebookConnector.py:58–72  ·  view source on GitHub ↗
(self, config_file="", log_level=None)

Source from the content-addressed store, hash-verified

56 )
57
58 def __init__(self, config_file="", log_level=None):
59 if config_file != "":
60 self.fb_config_file = config_file
61
62 self._logger = self._log()
63 if log_level is not None:
64 self._logger.setLevel(log_level)
65
66 config = configparser.ConfigParser()
67 list = config.read(self.fb_config_file)
68 if len(list) == 0:
69 self._logger.error("Error: Could not find the config file")
70 exit(1)
71
72 self._init_facebook(config)
73
74 def get_facebook_access_token(self):
75 """

Callers

nothing calls this directly

Calls 2

_logMethod · 0.95
_init_facebookMethod · 0.95

Tested by

no test coverage detected