Skip to content

A simple python module for adding subscribers to various Email Marketing Service Providers

License

Notifications You must be signed in to change notification settings

fgiannar/pythonemailproviders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Providers Integration Module Repository

This is a first attempt to create a python module and learn python :) What this module does is integrate with various popular email providers such as Mailchimp in order to add a subscriber to a given list.

This repo's structure is based on Kenneth Reitz's sample module

Learn more.


Installation

pip install git+https://github.com/fgiannar/pythonemailproviders.git#egg=pythonemailproviders

Usage

from providers.core import MailchimpProvider, KlaviyoProvider

m = MailchimpProvider('YOUR_MAILCHIMP_API_KEY', 'YOUR_MAILCHIMP_LIST_ID')

sub1 = {'FNAME': 'Jane', 'LNAME': 'Doe', 'email': '[email protected]'}

m.add_subscriber(sub1)

k = KlaviyoProvider('YOUR_KLAVIYO_API_KEY', 'YOUR_KLAVIYO_LIST_ID')

sub2 = {'$first_name': 'Jane', '$last_name': 'Doe', 'email': '[email protected]'}

k.add_subscriber(sub2)

About

A simple python module for adding subscribers to various Email Marketing Service Providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published