MailchimpSimple-0.2.0.0: Haskell library to interact with Mailchimp JSON API Version 3.0

LicenseBSD3
MaintainerDananji Liyanage <dan9131@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Utils.Types

Contents

Description

JSON data structures to work with Mailchimp JSON API Version 3.0

Synopsis

JSON Requests

data Subscription Source

JSON structure containing a single subscription.

This structure includes the email_address, email_type, and status to be shown in the member's profile. email_type accepts the two values; html / text

Constructors

Subscription 

data EmailId Source

Constructor to build the EmailId.

Constructors

Email String

from email address of the member

EmailUniqueId String

from unique ID provided by Mailchimp

ListEmailId String

from emailID of the member in the particular list

data Batch Source

JSON structure for Batch oprations.

Constructors

Batch 

Fields

operations :: [Operation]
 

data Operation Source

JSON structure to contain the Batch operation information.

For GET requests, o_param should be given the list of values. For POST requests, o_body should be given the String representation of the encoded JSON data.

Constructors

Operation 

data Params Source

List of parameters to the URL in HTTP request

Constructors

Params 

Fields

params :: [String]
 

data Campaign Source

JSON structure to construct a Campaign

This takes a campaign_type, which accepts these possible values; regular, plaintext, absplit, rss, and variate.

data Settings Source

Settings for the Campaign creation

This includes the basic properties of the Campaign, like subject_line, title, from_name, and reply_to address.

data Receipient Source

Structure to hold the list of recipients of a Campaign

Constructors

ListID String 

JSON Responses

data MailListResponse Source

Data structure to hold the HTTP response of the request to list the mailing-lists in the account.

Constructors

MailListResponse 

data TemplateResponse Source

Data structure to hold the Template information.

This contains the template name and ID.

Constructors

TemplateResponse 

Fields

t_name :: Maybe String
 
t_id :: Maybe Int