SOAP Web Service -  Waiting for your email to arrive

Now that you've sent an email, Litmus will update your test's state to "processing". But our local emailTest object needs to be updated because its state will still be "waiting". We can achieve this update using the method GetEmailTest:

 

emailTest = LitmusApi.GetEmailTest("api-key", "api-pass", emailTest.ID as integer)

 

A note for strongly-typed language developers Due to a mistake in the first version of our Web Service, EmailTest.ID is a string type, but GetEmailTest only accepts an integer. We can guarantee that EmailTest.ID will always be an integer, so you can safely work around this by casting (if your language requires this) to an integer type.  Dynamically and weakly typed languages such as Ruby won't need to do anything here.