There is no straightforward API integration. Yes, you can google “MailChimp API,” and you will find a nicely detailed API reference. And yes, you can google MailChimp python, and you will find Charles TISSIER’s implementation, which is a great lib.
The main challenge is with the initial set up and having a working code. You should definitely read the docs, but wouldn’t it be great if you can have a simple step by step process?
OK then, here we go:
1) Copy this file in your local folder
2) Create a new config.ini, with the following content:
mc_api = key
list_id = id
campaign_id = id
3) Now the question is where do I get these values? For the API key, go to https://us3.admin.mailchimp.com/account/api/, and create a key. For the list id, go to your lists, click on setting from the dropdown, and scroll all the way to the bottom. Finally, for the campaign id, go to your campaign lists, click on the campaign you want, and then go to Details tab, the id should be in the Campaign URL.
Another way to get the campaign id is to run the script and look in the output of the get_campaigns() function.
There you go, you are all set.