Created
February 22, 2018 16:55
-
-
Save jordotech/f45fdfe9db4776a61a2651cdf3efd6b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "[email protected]", | |
"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