CSharp

From CDYNE Wiki
Jump to: navigation, search

Back to Phone Notify!

Contents

Notify Phone Basic

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NotifyPhoneBasic.WSDL;
 
namespace NotifyPhoneBasic
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
NR = PN.NotifyPhoneBasic("17575449510", "Hello, this is a test message.", "18009843710", "CDYNE", "1", "YOUR LICENSE KEY");
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText);
 
Console.ReadLine();
}
}
}

Notify Phone Advanced

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Reflection;
using NotifyPhoneAdvanced.WSDL;
 
namespace NotifyPhoneAdvanced
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.AdvancedNotifyRequest ANR = new WSDL.AdvancedNotifyRequest();
 
ANR.CallerIDName = "CDYNE";
ANR.CallerIDNumber = "18009843710";
ANR.PhoneNumberToDial = "17575449510";
ANR.TextToSay = "Hello. This is a test call.";
ANR.VoiceID = 1;
ANR.StatusChangePostUrl = "http://www.yourpostbackurl.com"; //Optional
ANR.UTCScheduledDateTime = DateTime.UtcNow;
//ANR.UTCScheduledDateTime = new DateTime(2012, 12, 18, 11, 36, 0).ToUniversalTime();
//If scheduling calls, the local time will automatically be converted to UTC time when using the line of code above.
ANR.LicenseKey = "YOUR LICENSE KEY";
 
WSDL.NotifyReturn NR = PN.NotifyPhoneAdvanced(ANR);
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText);
 
Console.ReadLine();
}
}
}
 
/*
Additional parameters you may include within your request.
 
ANR.TransferNumber
ANR.TryCount
ANR.NextTryInSeconds
ANR.TTSrate
ANR.TTSvolume
ANR.MaxCallLength
ANR.ReferenceID
*/

Assign Incoming Number

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AssignIncomingNumber.WSDL;
 
namespace AssignIncomingNumber
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool IncomingNumber = PN.AssignIncomingNumber("15551234567", "YOUR LICENSE KEY");
 
Console.WriteLine("Incoming Number Assigned: " + IncomingNumber);
 
Console.ReadLine();
}
}
}

Cancel Conference

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CancelConference.WSDL;
 
namespace CancelConference
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
PN.CancelConference("CONFERENCE KEY");
}
}
}

Cancel Notify

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CancelNotify.WSDL;
 
namespace CancelNotify
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new PhoneNotify();
 
bool Cancelled = PN.CancelNotify(012345678, "YOUR LICENSE KEY");
 
Console.WriteLine("Notifcation Cancelled: " + Cancelled);
 
Console.ReadLine();
}
}
}

Cancel Notify By ReferenceID

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CancelNotifyByReferenceID.WSDL;
 
namespace CancelNotifyByReferenceID
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new PhoneNotify();
 
int Cancelled = PN.CancelNotifyByReferenceID("123", "YOUR LICENSE KEY");
 
if (Cancelled == 0)
{
Console.WriteLine("Notifification Cancelled: False");
}
else Console.WriteLine("Notification Cancelled: True");
 
Console.ReadLine();
}
}
}

Get Assigned Numbers

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetAssignedNumbers.WSDL;
 
namespace GetAssignedNumbers
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Assigned = PN.GetAssignedNumbers("YOUR LICENSE KEY");
 
if (Assigned.Length > 0)
{
Console.WriteLine("Assigned Numbers:" + "\n");
 
foreach (string Numbers in Assigned)
{
Console.WriteLine(Numbers);
}
}
else Console.WriteLine("No numbers assigned.");
 
Console.ReadLine();
}
}
}

Get Available Area Codes

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AreaCodes.WSDL;
 
namespace AreaCodes
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Incoming = PN.GetAvailableAreaCodes();
 
if (Incoming.Length > 0)
{
Console.WriteLine("Available Area Codes:" + "\n");
 
foreach (WSDL.AreaCode Area in Incoming)
{
Console.WriteLine(Area.AreaCodeNumber + " " + Area.Location);
}
}
else Console.WriteLine("No area codes available.");
 
Console.ReadLine();
}
}
}

Get Available Incoming Numbers

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Incoming_Numbers.WSDL;
 
namespace Incoming_Numbers
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Incoming = PN.GetAvailableIncomingNumbers("888");
 
if (Incoming.Length > 0)
{
Console.WriteLine("Available Incoming Numbers:" + "\n");
 
foreach (string Number in Incoming)
{
Console.WriteLine(Number);
}
}
else Console.WriteLine("No incoming numbers available.");
 
Console.ReadLine();
}
}
}

Get Incoming Call Script

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Get_Incoming_Script.WSDL;
 
namespace Get_Incoming_Script
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
string Script = PN.GetIncomingCallScript("15551234567", "YOUR LICENSE KEY");
 
Console.WriteLine(Script);
 
Console.ReadLine();
}
}
}

Get Multiple QueueID Status

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetMulitpleQueueIDStatus.WSDL;
 
namespace GetMulitpleQueueIDStatus
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Status = PN.GetMultipleQueueIdStatus("012345678; 876543210", "YOUR LICENSE KEY");
 
foreach (WSDL.NotifyReturn Info in Status)
{
Console.WriteLine("QueueID: " + Info.QueueID + "\n" +
"Response Code: " + Info.ResponseCode + "\n" +
"Response Text: " + Info.ResponseText + "\n" +
"Call Answered: " + Info.CallAnswered + "\n" +
"Try Count: " + Info.TryCount + "\n" +
"Demo: " + Info.Demo + "\n" +
"Digits Pressed: " + Info.DigitsPressed + "\n" +
"Machine Detection: " + Info.MachineDetection + "\n" +
"Duration: " + Info.Duration + "\n" +
"Start Time: " + Info.StartTime + "\n" +
"End Time: " + Info.EndTime + "\n" +
"Minute Rate: " + Info.MinuteRate + "\n" +
"Call Complete: " + Info.CallComplete + "\n\n");
}
Console.ReadLine();
}
}
}

Get QueueID Status

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QueueIDStatus.WSDL;
 
namespace QueueIDStatus
{
class Program
{
static void Main(string[] args)
{
 
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
NR = PN.GetQueueIDStatus(012345678);
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText + "\n" +
"Call Answered: " + NR.CallAnswered + "\n" +
"Try Count: " + NR.TryCount + "\n" +
"Demo: " + NR.Demo + "\n" +
"Digits Pressed: " + NR.DigitsPressed + "\n" +
"Machine Detection: " + NR.MachineDetection + "\n" +
"Duration: " + NR.Duration + "\n" +
"Start Time: " + NR.StartTime + "\n" +
"End Time: " + NR.EndTime + "\n" +
"Minute Rate: " + NR.MinuteRate + "\n" +
"Call Complete: " + NR.CallComplete);
 
Console.ReadLine();
}
}
}

Get QueueID Statuses By Phone Number

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QueueID_Statuses_Number.WSDL;
 
namespace QueueID_Statuses_Number
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Info = PN.GetQueueIDStatusesByPhoneNumber("17575449510", "YOUR LICENSE KEY");
 
if (Info.Length > 0)
{
foreach (WSDL.NotifyReturn NR in Info)
{
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText + "\n" +
"Call Answered: " + NR.CallAnswered + "\n" +
"Try Count: " + NR.TryCount + "\n" +
"Demo: " + NR.Demo + "\n" +
"Digits Pressed: " + NR.DigitsPressed + "\n" +
"Machine Detection: " + NR.MachineDetection + "\n" +
"Duration: " + NR.Duration + "\n" +
"Start Time: " + NR.StartTime + "\n" +
"End Time: " + NR.EndTime + "\n" +
"Minute Rate: " + NR.MinuteRate + "\n" +
"Call Complete: " + NR.CallComplete + "\n\n");
}
}
else Console.WriteLine("No information found.");
 
Console.ReadLine();
}
}
}

Get QueueID Status With Advanced Info

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QueueID_Status_Advanced.WSDL;
 
namespace QueueID_Status_Advanced
{
class Program
{
static void Main(string[] args)
{
 
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
NR = PN.GetQueueIDStatusWithAdvancedInfo(012345678, "YOUR LICENSE KEY");
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText + "\n" +
"Call Answered: " + NR.CallAnswered + "\n" +
"Try Count: " + NR.TryCount + "\n" +
"Demo: " + NR.Demo + "\n" +
"Digits Pressed: " + NR.DigitsPressed + "\n" +
"Machine Detection: " + NR.MachineDetection + "\n" +
"Duration: " + NR.Duration + "\n" +
"Start Time: " + NR.StartTime + "\n" +
"End Time: " + NR.EndTime + "\n" +
"Minute Rate: " + NR.MinuteRate + "\n" +
"Call Complete: " + NR.CallComplete + " \n" +
"Text to Say: " + NR.TextToSay);
 
Console.ReadLine();
}
}
}

Get Response Codes

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GetResponseCodes.WSDL;
 
namespace GetResponseCodes
{
class Program
{
static void Main(string[] args)
{
 
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Response = PN.GetResponseCodes();
 
foreach (WSDL.Response Codes in Response)
{
Console.WriteLine("Response Code: " + Codes.ResponseCode + " - " + Codes.ResponseText + "\n");
}
 
Console.ReadLine();
}
}
}

Get Sound File

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetSoundFile.WSDL;
 
namespace GetSoundFile
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
byte[] File = PN.GetSoundFile("testsoundfile_wav", "YOUR LICENSE KEY");
 
string Sound = Convert.ToBase64String(File);
 
Console.WriteLine(Sound);
 
Console.ReadLine();
}
}
}

Get Sound File In ULAW

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetSoundFileInUlaw.WSDL;
 
namespace GetSoundFileInUlaw
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
byte[] ULAW = PN.GetSoundFileInUlaw("testsoundfile_wav", "YOUR LICENSE KEY");
 
System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\TESTINGULAW.ulaw", System.IO.FileMode.Create, System.IO.FileAccess.Write);
 
FS.Write(ULAW, 0, ULAW.Length);
FS.Close();
 
Console.WriteLine("File saved to: " + @"C:\Users\\Desktop\TESTINGULAW.ulaw");
 
Console.ReadLine();
}
}
}

Get Sound File Length

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetSoundFileLength.WSDL;
 
namespace GetSoundFileLength
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
double Length = PN.GetSoundFileLength("testsoundfile_wav", "YOUR LICENSE KEY");
 
Console.WriteLine("Sound File Length: " + Length + " seconds");
 
Console.ReadLine();
}
}
}

Get Sound File URL

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetSoundFileURL.WSDL;
 
namespace GetSoundFileURL
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
string URL = PN.GetSoundFileURL("soundfilename_wav", "YOUR LICENSE KEY");
 
Console.WriteLine("Sound File URL: " + URL);
 
Console.ReadLine();
}
}
}

Get Sound File In MP3

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetSounFileInMP3.Properties;
using GetSounFileInMP3.WSDL;
 
namespace GetSounFileInMP3
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
byte[] MP3 = PN.GetSoundFileInMP3("soundfilename_wav", 128, "YOUR LICENSE KEY");
 
System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\soundfilename.mp3", System.IO.FileMode.Create, System.IO.FileAccess.Write);
 
FS.Write(MP3, 0, MP3.Length);
FS.Close();
 
Console.WriteLine("Sound file saved to: " + @"C:\Users\Desktop\soundfilename.mp3");
 
Console.ReadLine();
}
}
}

Get TTS In MP3

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetTTSInMP3.WSDL;
 
namespace GetTTSInMP3
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
byte[] MP3 = PN.GetTTSInMP3("Hello this phone notify TTS to MP3 test.", 2, 128, 6, 100, "YOUR LICENSE KEY");
 
System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\TTS-MP3.mp3", System.IO.FileMode.Create, System.IO.FileAccess.Write);
 
FS.Write(MP3, 0, MP3.Length);
FS.Close();
 
Console.WriteLine("File saved to: " + @"C:\Users\Desktop\TTS-MP3.mp3");
 
Console.ReadLine();
}
}
}

Get TTS In ULAW

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetTTSInULAW.WSDL;
 
namespace GetTTSInULAW
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
byte[] ULAW = PN.GetTTSInULAW("Hello this phone notify TTS to ULAW test.", 2, 6, 2, "YOUR LICENSE KEY");
 
System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\TTS-ULAW.ulaw", System.IO.FileMode.Create, System.IO.FileAccess.Write);
 
FS.Write(ULAW, 0, ULAW.Length);
FS.Close();
 
Console.WriteLine("File saved to: " + @"C:\Users\Desktop\TTS-ULAW.ulaw");
 
Console.ReadLine();
}
}
}

Get Version

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GetVersion.WSDL;
 
namespace GetVersion
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
string Version = PN.GetVersion();
 
Console.WriteLine("Phone Notify! API Version: " + Version);
 
Console.ReadLine();
}
}
}

Get Voices

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using getVoices.WSDL;
 
namespace getVoices
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array List = PN.getVoices();
 
foreach (WSDL.Voice Voices in List)
{
Console.WriteLine("Voice ID: " + Voices.VoiceID + "\n" +
"Voice Name: " + Voices.VoiceName + "\n" +
"Voice Gender: " + Voices.VoiceGender + "\n" +
"Voice Age: " + Voices.VoiceAge + "\n" +
"Voice Language: " + Voices.VoiceLanguage + "\n" +
"Voice Summary: " + Voices.VoiceSummary + "\n");
}
 
Console.ReadLine();
}
}
}

License Key Variable Save

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LicenseKeyVariableSave.WSDL;
 
namespace LicenseKeyVariableSave
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Variable = PN.LicenseKeyVariableSave("Test Variable", "123456789", "YOUR LICENSE KEY");
 
Console.WriteLine("Variable Saved: " + Variable);
 
Console.ReadLine();
}
}
}

License Key Variable Load

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LicenseKeyVariableLoad.WSDL;
 
namespace LicenseKeyVariableLoad
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
string Variable = PN.LicenseKeyVariableLoad("Test Variable", "YOUR LICENSE KEY");
 
Console.WriteLine("Value of Variable Loaded: " + Variable);
 
Console.ReadLine();
}
}
}

LM Add New List

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_AddNewList.WSDL;
 
namespace LM_AddNewList
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new PhoneNotify();
 
int ListID = PN.LM_AddNewList("Test List", 0, "YOUR LICENSE KEY");
 
Console.WriteLine("List ID: " + ListID);
 
Console.ReadLine();
}
}
}

LM Alter List ID

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_AlterListID.WSDL;
 
namespace LM_AlterListID
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Altered = PN.LM_AlterListID(12345, 0, "New Test List", "YOUR LICENSE KEY");
 
Console.WriteLine("List ID Altered: " + Altered);
 
Console.ReadLine();
}
}
}

LM Add List Member

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_AddListMember.WSDL;
 
namespace LM_AddListMember
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
int Member = PN.LM_AddListMember(12345, "YOUR LICENSE KEY", "17575449510", "1", "CDYNE", "Corporation");
 
Console.WriteLine("Member ID: " + Member);
 
Console.ReadLine();
 
}
}
}

LM Alter List Member

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_AlterListMember.WSDL;
 
namespace LM_AlterListMember
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new PhoneNotify();
 
bool Member = PN.LM_AlterListMember(98765, "YOUR LICENSE KEY", "1", "CDYNE", "Corp", "17575449510");
 
Console.WriteLine("List Member Altered: " + Member);
 
Console.ReadLine();
}
}
}

LM Delete List Member

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_DeleteListMember.WSDL;
 
namespace LM_DeleteListMember
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Member = PN.LM_DeleteListMember(98765, "YOUR LICENSE KEY");
 
Console.WriteLine("Member Deleted: " + Member);
 
Console.ReadLine();
}
}
}

LM Delete List

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_DeleteList.WSDL;
 
namespace LM_DeleteList
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Deleted = PN.LM_DeleteList(12345, "YOUR LICENSE KEY");
 
Console.WriteLine("List Deleted: " + Deleted);
 
Console.ReadLine();
}
}
}

Get List IDs By License Key

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GetListIDsByLicenseKey.WSDL;
 
namespace GetListIDsByLicenseKey
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify pn = new WSDL.PhoneNotify();
 
Array List = pn.LM_GetListIDsByLicensekey("YOUR LICENSE KEY");
 
if (List.Length > 0)
{
foreach (WSDL.LM_ListIDs ListIDs in List)
{
Console.WriteLine("List ID: " + ListIDs.ListID + "\n" +
"List Name: " + ListIDs.ListName + " \n" +
"Parent List ID: " + ListIDs.ParentListID + "\n");
}
}
else Console.WriteLine("No List IDs found.");
 
Console.ReadLine();
}
}
}

LM Get List Members By List ID

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_GetListMembersByListID.WSDL;
 
namespace LM_GetListMembersByListID
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array List = PN.LM_GetListMembersByListID(12345, "YOUR LICENSE KEY");
 
if (List.Length > 0)
{
foreach (WSDL.LM_ListMembers Members in List)
{
Console.WriteLine("List Member ID: " + Members.ListMemberID + "\n" +
"Phone Number: " + Members.PhoneNumber + "\n" +
"Member Name: " + Members.FirstName + " " + Members.LastName + "\n\n");
}
}
else Console.WriteLine("No members in list.");
 
Console.ReadLine();
}
}
}

Notify Multiple Phone Basic

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NotifyMultiplePhoneBasic.WSDL;
 
namespace NotifyMultiplePhoneBasic
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Notifications = PN.NotifyMultiplePhoneBasic("17575449510;18009843710", "Hello, this is a test.", "17575551234", "CDYNE", "0", "YOUR LICENSE KEY");
 
foreach (WSDL.NotifyReturn Info in Notifications)
{
Console.WriteLine("Queue ID: " + Info.QueueID + "\n" +
"Response Code: " + Info.ResponseCode + "\n" +
"Response Text: " + Info.ResponseText + "\n");
}
 
Console.ReadLine();
}
}
}

Notify Multiple Phone Basic With CPM

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NotifyMuliplePhoneBasicWithCPM.WSDL;
 
namespace NotifyMuliplePhoneBasicWithCPM
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Notifications = PN.NotifyMultiplePhoneBasicWithCPM("17575449510;18009843710", "Hello, this is a test.", "17575551234", "CDYNE", "0", 1, "YOUR LICENSE KEY");
 
foreach (WSDL.NotifyReturn Info in Notifications)
{
Console.WriteLine("QueueID: " + Info.QueueID + "\n" +
"Response Code: " + Info.ResponseCode + "\n" +
"Response Text: " + Info.ResponseText + "\n");
}
 
Console.ReadLine();
}
}
}

Notify Multiple Phone Basic With CPM and Reference ID

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NotifyMultiplePhoneBasicWithCPMandReferenceID.WSDL;
 
namespace NotifyMultiplePhoneBasicWithCPMandReferenceID
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
Array Notifications = PN.NotifyMultiplePhoneBasicWithCPMandReferenceID("17575449510;18009843710", "Hello, this is a test.", "17575551234", "CDYNE", "0", 1, "123", "YOUR LICENSE KEY");
 
foreach (WSDL.NotifyReturn Info in Notifications)
{
Console.WriteLine("QueueID: " + Info.QueueID + "\n" +
"Response Code: " + Info.ResponseCode + "\n" +
"Response Text: " + Info.ResponseText + "\n");
}
 
Console.ReadLine();
}
}
}

Notify Phone Basic With Transfer

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NotifyPhoneBasicWithTransfer.WSDL;
 
namespace NotifyPhoneBasicWithTransfer
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
NR = PN.NotifyPhoneBasicWithTransfer("17575449510", "18009843710", "Hello, this is a test.", "17575551234", "CDYNE Test", "0", "YOUR LICENSE KEY");
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText);
 
Console.ReadLine();
}
}
}

Notify Phone Basic With Try Count

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NotifyPhoneBasicWithTryCount.WSDL;
 
namespace NotifyPhoneBasicWithTryCount
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
NR = PN.NotifyPhoneBasicWithTryCount(3, "17575449510", "Hello this is a test.", "18009843710", "CDYNE Test", "0", "YOUR LICENSE KEY");
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText);
 
Console.ReadLine();
}
}
}

Notify Multiple Phone Advanced

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NotifyMultiplePhoneAdvanced.WSDL;
 
namespace NotifyMultiplePhoneAdvanced
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.AdvancedNotifyRequest ANR = new AdvancedNotifyRequest();
 
List<WSDL.AdvancedNotifyRequest> MultipleANR = new List<WSDL.AdvancedNotifyRequest>();
 
ANR.CallerIDName = "CDYNE Testing";
ANR.CallerIDNumber = "18009843710";
ANR.PhoneNumberToDial = "17575449510";
ANR.TextToSay = "Hello this is a test. Testing 1, 2, 3.";
ANR.VoiceID = 1;
ANR.TryCount = 3;
ANR.NextTryInSeconds = 60;
ANR.TTSrate = 5;
ANR.TTSvolume = 8;
ANR.MaxCallLength = 120;
ANR.StatusChangePostUrl = "http://yourpostbackurlhere.com";
ANR.UTCScheduledDateTime = DateTime.UtcNow;
//ANR.UTCScheduledDateTime = new DateTime(2012, 12, 18, 11, 36, 0).ToUniversalTime(); //Converts local time to UTC
ANR.LicenseKey = "f01d89fd-5155-5455-5585-e84ab8de8591";
 
MultipleANR.Add(ANR);
 
//ADD ADDITIONAL REQUESTS HERE
 
Array NR = PN.NotifyMultiplePhoneAdvanced(MultipleANR.ToArray());
 
WSDL.NotifyReturn Return = PN.NotifyPhoneAdvanced(ANR);
 
Console.WriteLine("QueueID: " + Return.QueueID + "\n" +
"Response Code: " + Return.ResponseCode + "\n" +
"Response Text: " + Return.ResponseText);
Console.ReadLine();


Notify Phone English Basic

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NotifyPhoneEnglishBasic.WSDL;
 
namespace NotifyPhoneEnglishBasic
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
 
NR = PN.NotifyPhoneEnglishBasic("17575449510", "Hello, this is a test message.", "YOUR LICENSE KEY");
 
Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
"Response Code: " + NR.ResponseCode + "\n" +
"Response Text: " + NR.ResponseText);
Console.ReadLine();
}
}
}

Record Sound File Via Phone Call

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RecordSoundViaPhoneCall.WSDL;
 
namespace RecordSoundViaPhoneCall
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Recorded = PN.RecordSoundViaPhoneCall("17575449510", "testsoundfile", "YOUR LICENSE KEY"); //Sound file name must be lowercase letters.
 
Console.WriteLine("Notification Sent to Record Sound File: " + Recorded);
 
Console.ReadLine();
}
}
}

Rename Sound File

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RenameSoundFile.WSDL;
 
namespace RenameSoundFile
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Rename = PN.RenameSoundFile("testsoundfile_wav", "soundfile1_wav", "YOUR LICENSE KEY");
 
Console.WriteLine("Sound File Renamed: " + Rename);
 
Console.ReadLine();
}
}
}

Remove Sound File

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RemoveSoundFile.WSDL;
 
namespace RemoveSoundFile
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Removed = PN.RemoveSoundFile("soundfile1", "YOUR LICENSE KEY");
 
Console.WriteLine("Sound File Removed: " + Removed);
 
Console.ReadLine();
}
}
}

Return Sound File IDs

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ReturnSoundFileIDs.WSDL;
 
namespace ReturnSoundFileIDs
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
string[] IDs = PN.ReturnSoundFileIDs("YOUR LICENSE KEY");
 
if (IDs.Length > 0)
{
Console.WriteLine("Sound File ID(s): " + "\n");
 
foreach (string files in IDs)
{
Console.WriteLine(files);
}
}
else Console.WriteLine("No sound files found.");
 
Console.ReadLine();
}
}
}

Script List

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Script_List.WSDL;
 
namespace Script_List
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
string[] Scripts = PN.ScriptList(false, "YOUR LICENSE KEY");
 
if (Scripts.Length > 0)
{
Console.WriteLine("Script Name(s): " + "\n");
 
foreach (string List in Scripts)
{
Console.WriteLine(List);
}
}
else Console.WriteLine("No scripts found.");
 
Console.ReadLine();
}
}
}

Script Delete

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ScriptDelete.WSDL;
 
namespace ScriptDelete
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Delete = PN.ScriptDelete("Test Script", "YOUR LICENSE KEY");
 
Console.WriteLine("Script Deleted: " + Delete);
 
Console.WriteLine();
}
}
}

Script Load

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptLoad.WSDL;
 
namespace ScriptLoad
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
string Script = PN.ScriptLoad("Test Script", "YOUR LICENSE KEY");
 
Console.WriteLine("Value of Script Loaded: " + Script);
 
Console.ReadLine();
}
}
}

Script Save

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptSave.WSDL;
 
namespace ScriptSave
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Save = PN.ScriptSave("Test Script", "Hello, this is a test.", "YOUR LICENSE KEY");
 
Console.WriteLine("Script Saved: " + Save);
 
Console.ReadLine();
}
}
}

Set Incoming Call Script

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SetIncomingScript.WSDL;
 
namespace SetIncomingScript
{
class Program
{
static void Main(string[] args)
{
WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
 
bool Script = PN.SetIncomingCallScript("18885551234", @"Hello, this is a test. ~\EndCall()~ ~\Label(AMD)~ Hello, this is a test. ~\EndCall()", "YOUR LICENSE KEY");
 
Console.WriteLine("Incoming Call Script Set: " + Script);
 
Console.ReadLine();
}
}
}

Upload Sound File

/*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UploadSoundFile.Properties;
using UploadSoundFile.WSDL;
 
namespace UploadSoundFile
{
class Program
{
static void Main()
{
string fileName = (@"C:\Users\Desktop\Hello.wav";
 
PhoneNotify PN = new PhoneNotify();
 
byte[] ba = System.IO.File.ReadAllBytes(fileName);
 
UploadFileResponse Response = PN.UploadSoundFile(ba, fileName.Substring(fileName.LastIndexOf("\\")), "YOUR LICENSE KEY");
 
Console.WriteLine("Sound File Uploaded: " + Response.UploadSuccessful + "\n" +
"Sound File Length: " + Response.UploadedLengthInSeconds + " seconds");
 
Console.ReadLine();
}
}
}
Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key