Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, *args, **kwargs):
"""
Initialize the endpoint
"""
super(AutomationActions, self).__init__(*args, **kwargs)
self.endpoint = 'automations'
self.workflow_id = None
def __init__(self, *args, **kwargs):
"""
Initialize the endpoint
"""
super(Automations, self).__init__(*args, **kwargs)
self.endpoint = 'automations'
self.workflow_id = None
self.actions = AutomationActions(self)
self.emails = AutomationEmails(self)
self.removed_subscribers = AutomationRemovedSubscribers(self)
def __init__(self, *args, **kwargs):
"""
Initialize the class with your api_key and user_id and attach all of
the endpoints
"""
super(MailChimp, self).__init__(*args, **kwargs)
# API Root
self.root = self.api_root = Root(self)
# Authorized Apps
self.authorized_apps = AuthorizedApps(self)
# Automations - Paid feature
self.automations = Automations(self)
self.automations.actions = AutomationActions(self)
self.automations.emails = AutomationEmails(self)
self.automations.emails.actions = AutomationEmailActions(self)
self.automations.emails.queues = AutomationEmailQueues(self)
self.automations.removed_subscribers = AutomationRemovedSubscribers(self)
# Batch Operations
self.batches = self.batch_operations = BatchOperations(self)
# Batch Webhooks
self.batch_webhooks = BatchWebhooks(self)
# Campaign Folders
self.campaign_folders = CampaignFolders(self)
# Campaigns
self.campaigns = Campaigns(self)
self.campaigns.actions = CampaignActions(self)
self.campaigns.content = CampaignContent(self)
self.campaigns.feedback = CampaignFeedback(self)
self.campaigns.send_checklist = CampaignSendChecklist(self)