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.
- First we call the CreateEmailTest method of the Litmus Web Service and pass in our API key and API pass.
- We then pass, as the thrid parameter, the emailTest object we created above.
- 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.