Safe Haskell | None |
---|---|
Language | Haskell2010 |
- addSubscriber :: String -> String -> String -> String -> IO (Either String SubscriptionResponse)
- batchSubscribe :: String -> String -> [String] -> IO BatchSubscriptionResponse
- listMailingLists :: String -> IO [MailListResponse]
- listSubscribers :: String -> String -> IO [ListSubscribersResponse]
- getTemplates :: String -> IO [TemplateResponse]
- createCampaign :: String -> String -> String -> String -> String -> String -> String -> Int -> String -> IO (Maybe String)
- sendEmail :: String -> String -> IO (Either String SendMailResponse)
Handling Mailing lists in Mailchimp
:: String | API key |
-> String | List ID |
-> String | Email address to be added |
-> String | Email type, choose from "html", "text" |
-> IO (Either String SubscriptionResponse) |
|
Add a new subscriber
:: String | API key |
-> String | List ID |
-> [String] | List of email addresses to be added |
-> IO BatchSubscriptionResponse |
|
Add a batch of subscribers
:: String | API key |
-> IO [MailListResponse] | Array of |
List mailing lists in a particular account with the given API key
:: String | API key |
-> String | List ID |
-> IO [ListSubscribersResponse] | Array of |
List subscribers in a mailing list with the given list ID
Sending & Creating campaigns
:: String | API key |
-> IO [TemplateResponse] | Array of |
Get the templates saved in hte Mailchimp account
:: String | API key |
-> String | List ID |
-> String | Sender's name |
-> String | Sender's email |
-> String | Campaign type, choose from "regular", "plaintext", "absplit", "rss", "auto" |
-> String | Subject of the campaign |
-> String | Receipient's name |
-> Int | Template ID |
-> String | |
-> IO (Maybe String) | Campaign ID |
Create a new campaign and save it in the Campaigns list
:: String | API key |
-> String | Campaign ID |
-> IO (Either String SendMailResponse) |
|
Send a saved email campaign