View
 

SOAP Web Service - Ordering your test

Our emailTest object is now as customised and prepared as it can be. No other properties can be set (that'll have an effect, anyway).

 

Ordering a new email test is very straightforward. We've created a CreateEmailTest method for you to send your emailTest object to us:

 

emailTest = LitmusApi.CreateEmailTest("api-key", "api-pass", emailTest) 

 

There are a few things happening at once here, so here's a breakdown of each.

 

  1. First we call the CreateEmailTest method of the Litmus Web Service and pass in our API key and API pass.
  2. We then pass, as the thrid parameter, the emailTest object we created above.
  3. Finally, the CreateEmailTest method actually returns an object which is an instance of the EmailTest class, so we're assigning that return value to our existing emailTest.