As an alternative to using SOAP APIs, you can send either SMS messages to a mobile device or a text-to-speech message to any phone (land line, mobile, or VOIP) using the REST (short for "Representational State Transfer") protocol. REST is typically used in scripting languages, especially for Web sites and Web applications.
REST calls are easy to try out. To execute one, you can simply enter the below string into the address bar of any browser (tested with Firefox and IE).
In this particular example, all parameters required to call the operation are passed in via the query string in the link below. You will need to replace each of these tokens (noted by square [] brackets) with the appropriate parameter value. You will also need to ensure that the values have all URL reserve characters correctly escaped. If you don't already have one, you can get a UserID and Password from StrikeIron by simply registering, and you will be provisioned with some free messages.
Also, here is a guide to calling StrikeIron services using REST: http://www.strikeiron.com/doc/How_to_call_a_StrikeIron_Web_Service_Using_REST.pdf
IVR Text-to-speech example (yes, lots of parameters):
http://ws.strikeiron.com/StrikeIron/JadukaNotification/JadukaNotificationService/RequestTextToSpeech?LicenseInfo.RegisteredUser.UserID=[UserID]&LicenseInfo.RegisteredUser.Password=[Password]&RequestTextToSpeech.NumberToCall=[string]&RequestTextToSpeech.CallerID=[string]&RequestTextToSpeech.TextData=[string]&RequestTextToSpeech.Actor=[PAUL/KATE]&RequestTextToSpeech.Text Format=[NORMAL/SSML/HTML/EMAIL]&RequestTextToSpeech.TextType=[TEXT/URI]&RequestTextToSpeech.VoiceVolume=[0-500]&RequestTextToSpeech.VoicePitch=[0-200]&RequestTextToSpeech.VoiceSpeed=[0-400]&RequestTextToSpeech.ThankYouURI=[string]&RequestTextToSpeech.InitialPause=[int]&RequestTextToSpeech.RepeatPause=[int]
SMS Text Messaging example:
http://ws.strikeiron.com/StrikeIron/SMSAlerts4/GlobalSMSPro/SendMessage?LicenseInfo.RegisteredUser.UserID=[UserID]&LicenseInfo.RegisteredUser.Password=[Password]&SendMessage.ToNumber=[ToNumber]&SendMessage.FromName=[FromName]&SendMessage.MessageText=[Message]
Try it out and let us know at StrikeIron if you have any difficulty!
Comments