C# Class MadMimi.Api

A simple wrapper for sending MadMimi mailers
Mostrar archivo Open project: madmimi/madmimi-dotnet Class Usage Examples

Public Methods

Method Description
AddAudienceListMembership ( string email, string list ) : Result
Api ( ) : System

Initializes a new instance of the MadMimi.Api class.

Api ( Config config ) : System

Initializes a new instance of the MadMimi.Api class.

Api ( string username, string apiKey ) : System

Initializes a new instance of the MadMimi.Api class.

SendEmail ( MailAddress fromAddress, string subject, MailAddress recipientAddress, string rawHtml, string rawPlainText ) : Result
SendEmail ( Parameters parameters ) : Result

Private Methods

Method Description
Get ( string path, Parameters parameters ) : Result
Post ( string path, Parameters parameters ) : Result
Post ( string path, Parameters parameters, bool ssl ) : Result

Method Details

AddAudienceListMembership() public method

public AddAudienceListMembership ( string email, string list ) : Result
email string
list string
return Result

Api() public method

Initializes a new instance of the MadMimi.Api class.
public Api ( ) : System
return System

Api() public method

Initializes a new instance of the MadMimi.Api class.
public Api ( Config config ) : System
config Config /// The to use. ///
return System

Api() public method

Initializes a new instance of the MadMimi.Api class.
public Api ( string username, string apiKey ) : System
username string /// Username. ///
apiKey string /// API key. ///
return System

SendEmail() public method

public SendEmail ( MailAddress fromAddress, string subject, MailAddress recipientAddress, string rawHtml, string rawPlainText ) : Result
fromAddress MailAddress
subject string
recipientAddress MailAddress
rawHtml string
rawPlainText string
return Result

SendEmail() public method

public SendEmail ( Parameters parameters ) : Result
parameters Parameters
return Result