def __init__(self, config={}): self.api_client = ApiClient(config) self.activityFeed = ActivityFeedApi(self.api_client) self.authorizedApps = AuthorizedAppsApi(self.api_client) self.automations = AutomationsApi(self.api_client) self.batchWebhooks = BatchWebhooksApi(self.api_client) self.batches = BatchesApi(self.api_client) self.campaignFolders = CampaignFoldersApi(self.api_client) self.campaigns = CampaignsApi(self.api_client) self.connectedSites = ConnectedSitesApi(self.api_client) self.conversations = ConversationsApi(self.api_client) self.customerJourneys = CustomerJourneysApi(self.api_client) self.ecommerce = EcommerceApi(self.api_client) self.facebookAds = FacebookAdsApi(self.api_client) self.fileManager = FileManagerApi(self.api_client) self.landingPages = LandingPagesApi(self.api_client) self.lists = ListsApi(self.api_client) self.ping = PingApi(self.api_client) self.reporting = ReportingApi(self.api_client) self.reports = ReportsApi(self.api_client) self.root = RootApi(self.api_client) self.searchCampaigns = SearchCampaignsApi(self.api_client) self.searchMembers = SearchMembersApi(self.api_client) self.templateFolders = TemplateFoldersApi(self.api_client) self.templates = TemplatesApi(self.api_client) self.verifiedDomains = VerifiedDomainsApi(self.api_client)
class Client(object): def __init__(self, config = {}): self.api_client = ApiClient(config) self.activityFeed = ActivityFeedApi(self.api_client) self.authorizedApps = AuthorizedAppsApi(self.api_client) self.automations = AutomationsApi(self.api_client) self.batchWebhooks = BatchWebhooksApi(self.api_client) self.batches = BatchesApi(self.api_client) self.campaignFolders = CampaignFoldersApi(self.api_client) self.campaigns = CampaignsApi(self.api_client) self.connectedSites = ConnectedSitesApi(self.api_client) self.conversations = ConversationsApi(self.api_client) self.dashboard = DashboardApi(self.api_client) self.ecommerce = EcommerceApi(self.api_client) self.externalAuths = ExternalAuthsApi(self.api_client) self.facebookAds = FacebookAdsApi(self.api_client) self.fileManager = FileManagerApi(self.api_client) self.landingPages = LandingPagesApi(self.api_client) self.lists = ListsApi(self.api_client) self.ping = PingApi(self.api_client) self.postcards = PostcardsApi(self.api_client) self.reporting = ReportingApi(self.api_client) self.reports = ReportsApi(self.api_client) self.root = RootApi(self.api_client) self.searchCampaigns = SearchCampaignsApi(self.api_client) self.searchMembers = SearchMembersApi(self.api_client) self.templateFolders = TemplateFoldersApi(self.api_client) self.templates = TemplatesApi(self.api_client) self.verifiedDomains = VerifiedDomainsApi(self.api_client) def set_config(self, config = {}): self.api_client.set_config(config)