using System; using TNZAPI.Messaging.Objects; using TNZAPI.Messaging.Send; namespace TNZTTSSimple { class Program { static void Main(string[] args) { const string sender = "YOUR_EMAIL_ADDRESS"; const string api_key = "YOUR_API_KEY"; const string recipient = "+6495005001"; const string message_to_people = "Hello, this is a call from test. This is relevant information."; TTS TTSMessage = new TTS(sender, api_key); TTSMessage.AddMessageData(TTS.MessageDataType.MessageToPeople, message_to_people); TTSMessage.AddRecipient(recipient); MessageResult response = TTSMessage.SendMessage(); if( response.Result == MessageResult.ResultCode.Success ) { Console.WriteLine("Success - " + response.MessageID); } else { Console.WriteLine("Error - " + response.ErrorMessage); } } } }