Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add subscriber to mailchimp with python [closed]

What is the simplest way - or library - to add a subscriber to mailchimp with python 2.5 on google app engine?

like image 212
catlan Avatar asked Sep 28 '26 10:09

catlan


1 Answers

mailsnake and PostMonkey both require Requests library, which dropped python 2.5 support with 0.10.1.

The simplest path seems to be chimpy.

Code Sample:

from chimpy import chimpy

chimp = chimpy.Connection('MAILCHIMP_APIKEY')
chimp.list_subscribe('your_list_id', self.request.get('email'), {'FIRST': '', 'LAST': ''}, double_optin=False)
like image 54
catlan Avatar answered Oct 01 '26 00:10

catlan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!