Skip to content

litmus/LitmusClient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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>");

Create a Litmus Page Test

var client = new LitmusApi(new Account("YourSubDomain", "YourUserName", "YourPassword"));            
var pageClients = new List<TestingApplication>();
pageClients.Add(new TestingApplication() { ApplicationCode = "chrome2", ResultType = "page" });
pageClients.Add(new TestingApplication() { ApplicationCode = "ie7", ResultType = "page" });
pageClients.Add(new TestingApplication() { ApplicationCode = "ie6", ResultType = "page" });
var url = "http://github.com";
var test = client.CreatePageTest(pageClients, url);

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

  • C# 100.0%