Skip to content

Instantly share code, notes, and snippets.

@jordotech
Created February 22, 2018 16:55
Show Gist options
  • Save jordotech/f45fdfe9db4776a61a2651cdf3efd6b2 to your computer and use it in GitHub Desktop.
Save jordotech/f45fdfe9db4776a61a2651cdf3efd6b2 to your computer and use it in GitHub Desktop.
def mc():
from mailchimp3 import MailChimp
api_key = settings.MAILCHIMP_API_KEY
data = {
"id": "store_001",
"list_id": "3dae751fe9",
"name": "Jordan Local",
"domain": "larue.ngrok.io",
"email_address": "jordotech@gmail.com",
"currency_code": "USD"
}
client = MailChimp('none', api_key)
r = client.stores.create(data)
print(r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment