A python client for v3 of MailChimp API
This package aims to provide a straighforward python client to interact with Mailchimp API v3.
This client is hosted at PyPi under the name mailchimp3
, to install it, simply run
pip install mailchimp3
requests >= 2.7.0
from mailchimp3 import MailChimp
client = MailChimp('YOUR USERNAME', 'YOUR SECRET KEY')
client.list.all() # returns all the lists
client.list.get('123456') # returns the list matching id '123456'
client.campaign.all() # returns all the campaigns
client.authorizedapp.all()
client.authorizedapp.get(app_id='')
client.automation.all()
client.automation.get(workflow_id='')
client.automation.pause(workflow_id='')
client.automation.start(workflow_id='')
client.automationemail.all(workflow_id='')
client.automationemail.get(workflow_id='', email_id='')
client.automationemail.pause(workflow_id='', email_id='')
client.automationemail.start(workflow_id='', email_id='')
client.automationemailqueue.all(workflow_id='', email_id='')
client.automationemailqueue.get(workflow_id='', email_id='', member_id='')
client.automationemailqueue.create(workflow_id='', email_id='', data='')
client.automationeremovedsubscriber.all(workflow_id='')
client.automationeremovedsubscriber.create(workflow_id='', data='')
client.campaign.all()
client.campaign.create(data={})
client.campaign.get(campaign_id='')
client.campaign.delete(campaign_id='')
client.campaign.get_content(campaign_id='', **kwargs)
client.campaign.set_content(campaign_id='', data={})
client.feedback.all(campaign_id='')
client.feedback.create(campaign_id='', data={})
client.feedback.get(campaign_id='', feedback_id='')
client.feedback.update(campaign_id='', feedback_id='', data={})
client.feedback.delete(campaign_id='', feedback_id='')
client.conversation.all()
client.conversation.get(conversation_id='')
client.file.all()
client.file.create(data='')
client.interest.all(list_id, category_id, count=100)
client.interest.create(list_id, category_id, post_data)
client.interest.get(list_id, category_id, interest_id)
client.interest.update(list_id, category_id, interest_id, post_data)
client.interest.delete(list_id, category_id, interest_id)
client.list.all()
client.list.get(list_id='')
client.list.create(data='')
client.list.update(list_id='', data='')
client.list.delete(list_id='')
client.report.all()
client.report.get(report_id='')
client.template.all()
client.template.get(template_id='')
client.template.update(template_id='', data='')
client.template.delete(template_id='')
If you are having issues, please let us know.
The project is licensed under the MIT License.