Skip to content

brendanc/LitmusClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LitmusClient

LitmusClient is a c# wrapper for Litmus's Customer API. It is currently under development. It uses RestSharp (https://github.com/restsharp/RestSharp) to wrap Litmus's REST API.

You will need your own Litmus account to use this library which you can get here: http://litmus.com/pricing

How you can use it:

Create a Litmus Email Test

var client = new LitmusApi(new Account("YourSubDomain", "YourUserName", "YourPassword")); 
var emailClients = new List<TestingApplication>();
emailClients.Add(new TestingApplication() { ApplicationCode = "hotmail", ResultType = "email" });
emailClients.Add(new TestingApplication() { ApplicationCode = "gmailnew", ResultType = "email" });
emailClients.Add(new TestingApplication() { ApplicationCode = "notes8", ResultType = "email" });
var subject = string.Format("Test email created by c# wrapper on {0}", DateTime.Now);
var test = client.CreateEmailTest(emailClients, subject, "<html><body><p>This is a kitten:</p><img src=\"http://placekitten.com/200/300\" alt=\"kitten\"></img></body></html>");

If you just want to use this library in your application:

References:

About

C# Implementation of Litmus' Customer Api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages