سؤال

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

هل كانت مفيدة؟

المحلول

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)

نصائح أخرى

The MailChimp API has all the details for the functionality that you want.

Hope this helps.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top