CSharp

From CDYNE Wiki
Jump to navigation Jump to search

Back to Phone Notify!

Notify Phone Basic

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using NotifyPhoneBasic.WSDL;
 9 
10 namespace NotifyPhoneBasic
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             NR = PN.NotifyPhoneBasic("17575449510", "Hello, this is a test message.", "18009843710", "CDYNE", "1", "YOUR LICENSE KEY");
20 
21             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
22                             "Response Code: " + NR.ResponseCode + "\n" +
23                             "Response Text: " + NR.ResponseText);
24 
25             Console.ReadLine();
26         }
27     }
28 }

Notify Phone Advanced

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading;
 8 using System.Reflection;
 9 using NotifyPhoneAdvanced.WSDL;
10 
11 namespace NotifyPhoneAdvanced
12 {
13     class Program
14     {
15         static void Main(string[] args)
16         {
17             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
18             WSDL.AdvancedNotifyRequest ANR = new WSDL.AdvancedNotifyRequest();
19 
20             ANR.CallerIDName = "CDYNE";
21             ANR.CallerIDNumber = "18009843710";
22             ANR.PhoneNumberToDial = "17575449510";
23             ANR.TextToSay = "Hello.  This is a test call.";
24             ANR.VoiceID = 1;
25             ANR.StatusChangePostUrl = "http://www.yourpostbackurl.com"; //Optional
26             ANR.UTCScheduledDateTime = DateTime.UtcNow;
27             //ANR.UTCScheduledDateTime = new DateTime(2012, 12, 18, 11, 36, 0).ToUniversalTime(); 
28             //If scheduling calls, the local time will automatically be converted to UTC time when using the line of code above.
29             ANR.LicenseKey = "YOUR LICENSE KEY";
30 
31             WSDL.NotifyReturn NR = PN.NotifyPhoneAdvanced(ANR);
32 
33             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
34                             "Response Code: " + NR.ResponseCode + "\n" +
35                             "Response Text: " + NR.ResponseText);
36 
37             Console.ReadLine();
38         }
39     }
40 }
41 
42 /*
43 Additional parameters you may include within your request.
44 
45 ANR.TransferNumber
46 ANR.TryCount
47 ANR.NextTryInSeconds
48 ANR.TTSrate
49 ANR.TTSvolume
50 ANR.MaxCallLength
51 ANR.ReferenceID
52 */

Assign Incoming Number

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using AssignIncomingNumber.WSDL;
 9 
10 namespace AssignIncomingNumber
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool IncomingNumber = PN.AssignIncomingNumber("15551234567", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Incoming Number Assigned: " + IncomingNumber);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Cancel Conference

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using CancelConference.WSDL;
 9 
10 namespace CancelConference
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             PN.CancelConference("CONFERENCE KEY");
19         }
20     }
21 }

Cancel Notify

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using CancelNotify.WSDL;
 9 
10 namespace CancelNotify
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new PhoneNotify();
17 
18             bool Cancelled = PN.CancelNotify(012345678, "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Notifcation Cancelled: " + Cancelled);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Cancel Notify By ReferenceID

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using CancelNotifyByReferenceID.WSDL;
 9 
10 namespace CancelNotifyByReferenceID
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new PhoneNotify();
17 
18             int Cancelled = PN.CancelNotifyByReferenceID("123", "YOUR LICENSE KEY");
19 
20             if (Cancelled == 0)
21             {
22                 Console.WriteLine("Notifification Cancelled: False");
23             }
24             else Console.WriteLine("Notification Cancelled: True");
25 
26             Console.ReadLine();
27         }
28     }
29 }

Get Assigned Numbers

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetAssignedNumbers.WSDL;
 9 
10 namespace GetAssignedNumbers
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             Array Assigned = PN.GetAssignedNumbers("YOUR LICENSE KEY");
19 
20              if (Assigned.Length > 0)
21             {
22                 Console.WriteLine("Assigned Numbers:" + "\n");
23 
24                 foreach (string Numbers in Assigned)
25                 {
26                     Console.WriteLine(Numbers);
27                 }
28             }
29             else Console.WriteLine("No numbers assigned.");
30 
31             Console.ReadLine();
32         }
33     }
34 }

Get Available Area Codes

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using AreaCodes.WSDL;
 8 
 9 namespace AreaCodes
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             Array Incoming = PN.GetAvailableAreaCodes();
18 
19             if (Incoming.Length > 0)
20             {
21                 Console.WriteLine("Available Area Codes:" + "\n");
22            
23                 foreach (WSDL.AreaCode Area in Incoming)
24                 {
25                     Console.WriteLine(Area.AreaCodeNumber + " " + Area.Location);
26                 }
27             }
28             else Console.WriteLine("No area codes available.");
29 
30             Console.ReadLine();
31         }
32     }
33 }

Get Available Incoming Numbers

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using Incoming_Numbers.WSDL;
 8 
 9 namespace Incoming_Numbers
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             Array Incoming = PN.GetAvailableIncomingNumbers("888");
18 
19             if (Incoming.Length > 0)
20             {
21                 Console.WriteLine("Available Incoming Numbers:" + "\n");
22                
23                 foreach (string Number in Incoming)
24                 {
25                     Console.WriteLine(Number);
26                 }
27             }
28             else Console.WriteLine("No incoming numbers available.");
29 
30             Console.ReadLine();
31         }
32     }
33 }

Get Incoming Call Script

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using Get_Incoming_Script.WSDL;
 8 
 9 namespace Get_Incoming_Script
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
17 
18             string Script = PN.GetIncomingCallScript("15551234567", "YOUR LICENSE KEY");
19 
20             Console.WriteLine(Script);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Get Multiple QueueID Status

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetMulitpleQueueIDStatus.WSDL;
 9 
10 namespace GetMulitpleQueueIDStatus
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             Array Status = PN.GetMultipleQueueIdStatus("012345678; 876543210", "YOUR LICENSE KEY");
19 
20             foreach (WSDL.NotifyReturn Info in Status)
21             {
22                 Console.WriteLine("QueueID: " + Info.QueueID + "\n" +
23                                 "Response Code: " + Info.ResponseCode + "\n" +
24                                 "Response Text: " + Info.ResponseText + "\n" +
25                                 "Call Answered: " + Info.CallAnswered + "\n" +
26                                 "Try Count: " + Info.TryCount + "\n" +
27                                 "Demo: " + Info.Demo + "\n" +
28                                 "Digits Pressed: " + Info.DigitsPressed + "\n" +
29                                 "Machine Detection: " + Info.MachineDetection + "\n" +
30                                 "Duration: " + Info.Duration + "\n" +
31                                 "Start Time: " + Info.StartTime + "\n" +
32                                 "End Time: " + Info.EndTime + "\n" +
33                                 "Minute Rate: " + Info.MinuteRate + "\n" +
34                                 "Call Complete: " + Info.CallComplete + "\n\n");
35             }
36                 Console.ReadLine();
37         }
38     }
39 }

Get QueueID Status

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using QueueIDStatus.WSDL;
 8 
 9 namespace QueueIDStatus
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15 
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             NR = PN.GetQueueIDStatus(012345678);
20 
21             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
22                             "Response Code: " + NR.ResponseCode + "\n" +
23                             "Response Text: " + NR.ResponseText + "\n" +
24                             "Call Answered: " + NR.CallAnswered + "\n" +
25                             "Try Count: " + NR.TryCount + "\n" +
26                             "Demo: " + NR.Demo + "\n" +
27                             "Digits Pressed: " + NR.DigitsPressed + "\n" +
28                             "Machine Detection: " + NR.MachineDetection + "\n" +
29                             "Duration: " + NR.Duration + "\n" +
30                             "Start Time: " + NR.StartTime + "\n" +
31                             "End Time: " + NR.EndTime + "\n" +
32                             "Minute Rate: " + NR.MinuteRate + "\n" +
33                             "Call Complete: " + NR.CallComplete);
34 
35             Console.ReadLine();
36         }
37     }
38 }

Get QueueID Statuses By Phone Number

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using QueueID_Statuses_Number.WSDL;
 8 
 9 namespace QueueID_Statuses_Number
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             Array Info = PN.GetQueueIDStatusesByPhoneNumber("17575449510", "YOUR LICENSE KEY");
18 
19             if (Info.Length > 0)
20             {
21                 foreach (WSDL.NotifyReturn NR in Info)
22                 {
23                     Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
24                             "Response Code: " + NR.ResponseCode + "\n" +
25                             "Response Text: " + NR.ResponseText + "\n" +
26                             "Call Answered: " + NR.CallAnswered + "\n" +
27                             "Try Count: " + NR.TryCount + "\n" +
28                             "Demo: " + NR.Demo + "\n" +
29                             "Digits Pressed: " + NR.DigitsPressed + "\n" +
30                             "Machine Detection: " + NR.MachineDetection + "\n" +
31                             "Duration: " + NR.Duration + "\n" +
32                             "Start Time: " + NR.StartTime + "\n" +
33                             "End Time: " + NR.EndTime + "\n" +
34                             "Minute Rate: " + NR.MinuteRate + "\n" +
35                             "Call Complete: " + NR.CallComplete + "\n\n");
36                 }
37             }
38             else Console.WriteLine("No information found.");
39 
40             Console.ReadLine();
41         }
42     }
43 }

Get QueueID Status With Advanced Info

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using QueueID_Status_Advanced.WSDL;
 8 
 9 namespace QueueID_Status_Advanced
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15 
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             NR = PN.GetQueueIDStatusWithAdvancedInfo(012345678, "YOUR LICENSE KEY");
20 
21             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
22                                 "Response Code: " + NR.ResponseCode + "\n" +
23                                 "Response Text: " + NR.ResponseText + "\n" +
24                                 "Call Answered: " + NR.CallAnswered + "\n" +
25                                 "Try Count: " + NR.TryCount + "\n" +
26                                 "Demo: " + NR.Demo + "\n" +
27                                 "Digits Pressed: " + NR.DigitsPressed + "\n" +
28                                 "Machine Detection: " + NR.MachineDetection + "\n" +
29                                 "Duration: " + NR.Duration + "\n" +
30                                 "Start Time: " + NR.StartTime + "\n" +
31                                 "End Time: " + NR.EndTime + "\n" +
32                                 "Minute Rate: " + NR.MinuteRate + "\n" +
33                                 "Call Complete: " + NR.CallComplete + " \n" +
34                                 "Text to Say: " + NR.TextToSay);
35 
36             Console.ReadLine();
37         }
38     }
39 }

Get Response Codes

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using GetResponseCodes.WSDL;
 8 
 9 namespace GetResponseCodes
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15 
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             Array Response = PN.GetResponseCodes();
19 
20             foreach (WSDL.Response Codes in Response)
21             {
22                 Console.WriteLine("Response Code: " + Codes.ResponseCode + " - " + Codes.ResponseText + "\n");
23             }
24 
25             Console.ReadLine();
26         }
27     }
28 }

Get Sound File

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetSoundFile.WSDL;
 9 
10 namespace GetSoundFile
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             byte[] File = PN.GetSoundFile("testsoundfile_wav", "YOUR LICENSE KEY");
20 
21             string Sound = Convert.ToBase64String(File);
22 
23             Console.WriteLine(Sound);
24 
25             Console.ReadLine();
26         }
27     }
28 }

Get Sound File In ULAW

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetSoundFileInUlaw.WSDL;
 9 
10 namespace GetSoundFileInUlaw
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             byte[] ULAW = PN.GetSoundFileInUlaw("testsoundfile_wav", "YOUR LICENSE KEY");
20 
21             System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\TESTINGULAW.ulaw", System.IO.FileMode.Create, System.IO.FileAccess.Write);
22 
23             FS.Write(ULAW, 0, ULAW.Length);
24             FS.Close();
25 
26             Console.WriteLine("File saved to: " + @"C:\Users\\Desktop\TESTINGULAW.ulaw");
27 
28             Console.ReadLine();
29         }
30     }
31 }

Get Sound File Length

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetSoundFileLength.WSDL;
 9 
10 namespace GetSoundFileLength
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             double Length = PN.GetSoundFileLength("testsoundfile_wav", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Sound File Length: " + Length + " seconds");
21 
22             Console.ReadLine();
23         }
24     }
25 }

Get Sound File URL

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetSoundFileURL.WSDL;
 9 
10 namespace GetSoundFileURL
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             string URL = PN.GetSoundFileURL("soundfilename_wav", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Sound File URL: " + URL);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Get Sound File In MP3

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetSounFileInMP3.Properties;
 9 using GetSounFileInMP3.WSDL;
10 
11 namespace GetSounFileInMP3
12 {
13     class Program
14     {
15         static void Main(string[] args)
16         {
17             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
18             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
19 
20             byte[] MP3 = PN.GetSoundFileInMP3("soundfilename_wav", 128, "YOUR LICENSE KEY");
21 
22             System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\soundfilename.mp3", System.IO.FileMode.Create, System.IO.FileAccess.Write);
23 
24             FS.Write(MP3, 0, MP3.Length);
25             FS.Close();
26 
27             Console.WriteLine("Sound file saved to: " + @"C:\Users\Desktop\soundfilename.mp3");
28 
29             Console.ReadLine();
30         }
31     }
32 }

Get TTS In MP3

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetTTSInMP3.WSDL;
 9 
10 namespace GetTTSInMP3
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             byte[] MP3 = PN.GetTTSInMP3("Hello this phone notify TTS to MP3 test.", 2, 128, 6, 100, "YOUR LICENSE KEY");
20 
21             System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\TTS-MP3.mp3", System.IO.FileMode.Create, System.IO.FileAccess.Write);
22 
23             FS.Write(MP3, 0, MP3.Length);
24             FS.Close();
25 
26             Console.WriteLine("File saved to: " + @"C:\Users\Desktop\TTS-MP3.mp3");
27 
28             Console.ReadLine();
29         }
30     }
31 }

Get TTS In ULAW

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetTTSInULAW.WSDL;
 9 
10 namespace GetTTSInULAW
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             byte[] ULAW = PN.GetTTSInULAW("Hello this phone notify TTS to ULAW test.", 2, 6, 2, "YOUR LICENSE KEY");
20 
21             System.IO.FileStream FS = new System.IO.FileStream(@"C:\Users\Desktop\TTS-ULAW.ulaw", System.IO.FileMode.Create, System.IO.FileAccess.Write);
22 
23             FS.Write(ULAW, 0, ULAW.Length);
24             FS.Close();
25 
26             Console.WriteLine("File saved to: " + @"C:\Users\Desktop\TTS-ULAW.ulaw");
27 
28             Console.ReadLine();
29         }
30     }
31 }

Get Version

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using GetVersion.WSDL;
 9 
10 namespace GetVersion
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             string Version = PN.GetVersion();
19 
20             Console.WriteLine("Phone Notify! API Version: " +  Version);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Get Voices

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using getVoices.WSDL;
 9 
10 namespace getVoices
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             Array List = PN.getVoices();
19 
20             foreach (WSDL.Voice Voices in List)
21             {
22                 Console.WriteLine("Voice ID: " + Voices.VoiceID + "\n" +
23                                 "Voice Name: " + Voices.VoiceName + "\n" +
24                                 "Voice Gender: " + Voices.VoiceGender + "\n" +
25                                 "Voice Age: " + Voices.VoiceAge + "\n" +
26                                 "Voice Language: " + Voices.VoiceLanguage + "\n" +
27                                 "Voice Summary: " + Voices.VoiceSummary + "\n");
28             }
29 
30             Console.ReadLine();
31         }
32     }
33 }

License Key Variable Save

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LicenseKeyVariableSave.WSDL;
 9 
10 namespace LicenseKeyVariableSave
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool Variable = PN.LicenseKeyVariableSave("Test Variable", "123456789", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Variable Saved: " + Variable);
21 
22             Console.ReadLine();
23         }
24     }
25 }

License Key Variable Load

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LicenseKeyVariableLoad.WSDL;
 9 
10 namespace LicenseKeyVariableLoad
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             string Variable = PN.LicenseKeyVariableLoad("Test Variable", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Value of Variable Loaded: " + Variable);
21 
22             Console.ReadLine();
23         }
24     }
25 }

LM Add New List

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_AddNewList.WSDL;
 9 
10 namespace LM_AddNewList
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new PhoneNotify();
17 
18             int ListID = PN.LM_AddNewList("Test List", 0, "YOUR LICENSE KEY");
19 
20             Console.WriteLine("List ID: " + ListID);
21 
22             Console.ReadLine();
23         }
24     }
25 }

LM Alter List ID

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_AlterListID.WSDL;
 9 
10 namespace LM_AlterListID
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool Altered = PN.LM_AlterListID(12345, 0, "New Test List", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("List ID Altered: " + Altered);
21 
22             Console.ReadLine();
23         }
24     }
25 }

LM Add List Member

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_AddListMember.WSDL;
 9 
10 namespace LM_AddListMember
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             
18             int Member = PN.LM_AddListMember(12345, "YOUR LICENSE KEY", "17575449510", "1", "CDYNE", "Corporation");
19 
20             Console.WriteLine("Member ID: " + Member);
21 
22             Console.ReadLine();
23 
24         }
25     }
26 }

LM Alter List Member

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_AlterListMember.WSDL;
 9 
10 namespace LM_AlterListMember
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new PhoneNotify();
17 
18             bool Member = PN.LM_AlterListMember(98765, "YOUR LICENSE KEY", "1", "CDYNE", "Corp", "17575449510");
19 
20             Console.WriteLine("List Member Altered: " + Member);
21 
22             Console.ReadLine();
23         }
24     }
25 }

LM Delete List Member

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_DeleteListMember.WSDL;
 9 
10 namespace LM_DeleteListMember
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18            bool Member = PN.LM_DeleteListMember(98765, "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Member Deleted: " + Member);
21 
22             Console.ReadLine();
23         }
24     }
25 }

LM Delete List

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_DeleteList.WSDL;
 9 
10 namespace LM_DeleteList
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool Deleted = PN.LM_DeleteList(12345, "YOUR LICENSE KEY");
19 
20             Console.WriteLine("List Deleted: " + Deleted);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Get List IDs By License Key

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using GetListIDsByLicenseKey.WSDL;
 8 
 9 namespace GetListIDsByLicenseKey
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify pn = new WSDL.PhoneNotify();
16 
17             Array List = pn.LM_GetListIDsByLicensekey("YOUR LICENSE KEY");
18 
19             if (List.Length > 0)
20             {
21                 foreach (WSDL.LM_ListIDs ListIDs in List)
22                 {
23                     Console.WriteLine("List ID: " + ListIDs.ListID + "\n" +
24                                     "List Name: " + ListIDs.ListName + " \n" +
25                                     "Parent List ID: " + ListIDs.ParentListID + "\n");
26                 }
27             }
28             else Console.WriteLine("No List IDs found.");
29 
30             Console.ReadLine();
31         }
32     }
33 }

LM Get List Members By List ID

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using LM_GetListMembersByListID.WSDL;
 9 
10 namespace LM_GetListMembersByListID
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             Array List = PN.LM_GetListMembersByListID(12345, "YOUR LICENSE KEY");
19 
20             if (List.Length > 0)
21             {
22                 foreach (WSDL.LM_ListMembers Members in List)
23                 {
24                     Console.WriteLine("List Member ID: " + Members.ListMemberID + "\n" +
25                                     "Phone Number: " + Members.PhoneNumber + "\n" +
26                                     "Member Name: " + Members.FirstName + " " + Members.LastName + "\n\n");
27                 }
28             }
29             else Console.WriteLine("No members in list.");
30 
31             Console.ReadLine();
32         }
33     }
34 }

Notify Multiple Phone Basic

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using NotifyMultiplePhoneBasic.WSDL;
 8 
 9 namespace NotifyMultiplePhoneBasic
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             Array Notifications = PN.NotifyMultiplePhoneBasic("17575449510;18009843710", "Hello, this is a test.", "17575551234", "CDYNE", "0", "YOUR LICENSE KEY");
18             
19             foreach (WSDL.NotifyReturn Info in Notifications)
20             {
21                 Console.WriteLine("Queue ID: " + Info.QueueID + "\n" +
22                                 "Response Code: " + Info.ResponseCode + "\n" +
23                                 "Response Text: " + Info.ResponseText + "\n");
24             }
25 
26             Console.ReadLine();
27         }
28     }
29 }

Notify Multiple Phone Basic With CPM

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using NotifyMuliplePhoneBasicWithCPM.WSDL;
 8 
 9 namespace NotifyMuliplePhoneBasicWithCPM
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16             
17             Array Notifications = PN.NotifyMultiplePhoneBasicWithCPM("17575449510;18009843710", "Hello, this is a test.", "17575551234", "CDYNE", "0", 1, "YOUR LICENSE KEY");
18 
19             foreach (WSDL.NotifyReturn Info in Notifications)
20             {
21                 Console.WriteLine("QueueID: " + Info.QueueID + "\n" +
22                                 "Response Code: " + Info.ResponseCode + "\n" +
23                                 "Response Text: " + Info.ResponseText + "\n");
24             }
25 
26             Console.ReadLine();
27         }
28     }
29 }

Notify Multiple Phone Basic With CPM and Reference ID

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using NotifyMultiplePhoneBasicWithCPMandReferenceID.WSDL;
 9 
10 namespace NotifyMultiplePhoneBasicWithCPMandReferenceID
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             Array Notifications = PN.NotifyMultiplePhoneBasicWithCPMandReferenceID("17575449510;18009843710", "Hello, this is a test.", "17575551234", "CDYNE", "0", 1, "123", "YOUR LICENSE KEY");
19 
20             foreach (WSDL.NotifyReturn Info in Notifications)
21             {
22                 Console.WriteLine("QueueID: " + Info.QueueID + "\n" +
23                                 "Response Code: " + Info.ResponseCode + "\n" +
24                                 "Response Text: " + Info.ResponseText + "\n");
25             }
26 
27             Console.ReadLine();
28         }
29     }
30 }

Notify Phone Basic With Transfer

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using NotifyPhoneBasicWithTransfer.WSDL;
 8 
 9 namespace NotifyPhoneBasicWithTransfer
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
17 
18             NR = PN.NotifyPhoneBasicWithTransfer("17575449510", "18009843710", "Hello, this is a test.", "17575551234", "CDYNE Test", "0", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
21                             "Response Code: " + NR.ResponseCode + "\n" +
22                             "Response Text: " + NR.ResponseText);
23 
24             Console.ReadLine();
25         }
26     }
27 }

Notify Phone Basic With Try Count

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using NotifyPhoneBasicWithTryCount.WSDL;
 8 
 9 namespace NotifyPhoneBasicWithTryCount
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
17 
18             NR = PN.NotifyPhoneBasicWithTryCount(3, "17575449510", "Hello this is a test.", "18009843710", "CDYNE Test", "0", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
21                             "Response Code: " + NR.ResponseCode + "\n" +
22                             "Response Text: " + NR.ResponseText);
23 
24             Console.ReadLine();
25         }
26     }
27 }

Notify Multiple Phone Advanced

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using NotifyMultiplePhoneAdvanced.WSDL;
 9 
10 namespace NotifyMultiplePhoneAdvanced
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.AdvancedNotifyRequest ANR = new AdvancedNotifyRequest();
18 
19             List<WSDL.AdvancedNotifyRequest> MultipleANR = new List<WSDL.AdvancedNotifyRequest>();
20 
21             ANR.CallerIDName = "CDYNE Testing";
22             ANR.CallerIDNumber = "18009843710";
23             ANR.PhoneNumberToDial = "17575449510";
24             ANR.TextToSay = "Hello this is a test.  Testing 1, 2, 3.";
25             ANR.VoiceID = 1;
26             ANR.TryCount = 3;
27             ANR.NextTryInSeconds = 60;
28             ANR.TTSrate = 5;
29             ANR.TTSvolume = 8;
30             ANR.MaxCallLength = 120;
31             ANR.StatusChangePostUrl = "http://yourpostbackurlhere.com";
32             ANR.UTCScheduledDateTime = DateTime.UtcNow;
33             //ANR.UTCScheduledDateTime = new DateTime(2012, 12, 18, 11, 36, 0).ToUniversalTime(); //Converts local time to UTC
34             ANR.LicenseKey = "f01d89fd-5155-5455-5585-e84ab8de8591";
35 
36             MultipleANR.Add(ANR);
37             
38             //ADD ADDITIONAL REQUESTS HERE
39 
40             Array NR = PN.NotifyMultiplePhoneAdvanced(MultipleANR.ToArray());
41 
42             WSDL.NotifyReturn Return = PN.NotifyPhoneAdvanced(ANR);
43             
44             Console.WriteLine("QueueID: " + Return.QueueID + "\n" +
45                               "Response Code: " + Return.ResponseCode + "\n" +
46                               "Response Text: " + Return.ResponseText);
47             Console.ReadLine();


Notify Phone English Basic

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using NotifyPhoneEnglishBasic.WSDL;
 9 
10 namespace NotifyPhoneEnglishBasic
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17             WSDL.NotifyReturn NR = new WSDL.NotifyReturn();
18 
19             NR = PN.NotifyPhoneEnglishBasic("17575449510", "Hello, this is a test message.", "YOUR LICENSE KEY");
20 
21             Console.WriteLine("QueueID: " + NR.QueueID + "\n" +
22                             "Response Code: " + NR.ResponseCode + "\n" +
23                             "Response Text: " + NR.ResponseText);
24             Console.ReadLine();
25         }
26     }
27 }

Record Sound File Via Phone Call

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using RecordSoundViaPhoneCall.WSDL;
 8 
 9 namespace RecordSoundViaPhoneCall
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             bool Recorded = PN.RecordSoundViaPhoneCall("17575449510", "testsoundfile", "YOUR LICENSE KEY"); //Sound file name must be lowercase letters.
18 
19             Console.WriteLine("Notification Sent to Record Sound File: " + Recorded);
20 
21             Console.ReadLine();
22         }
23     }
24 }

Rename Sound File

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using RenameSoundFile.WSDL;
 9 
10 namespace RenameSoundFile
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool Rename = PN.RenameSoundFile("testsoundfile_wav", "soundfile1_wav", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Sound File Renamed: " + Rename);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Remove Sound File

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using RemoveSoundFile.WSDL;
 9 
10 namespace RemoveSoundFile
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool Removed = PN.RemoveSoundFile("soundfile1", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Sound File Removed: " + Removed);
21 
22             Console.ReadLine();
23         }
24     }
25 }

Return Sound File IDs

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using ReturnSoundFileIDs.WSDL;
 9 
10 namespace ReturnSoundFileIDs
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             string[] IDs = PN.ReturnSoundFileIDs("YOUR LICENSE KEY");
19 
20             if (IDs.Length > 0)
21             {
22                 Console.WriteLine("Sound File ID(s): " + "\n");
23 
24                 foreach (string files in IDs)
25                 {
26                     Console.WriteLine(files);
27                 }
28             }
29             else Console.WriteLine("No sound files found.");
30             
31             Console.ReadLine();
32         }
33     }
34 }

Script List

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using Script_List.WSDL;
 8 
 9 namespace Script_List
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             string[] Scripts = PN.ScriptList(false, "YOUR LICENSE KEY");
18             
19             if (Scripts.Length > 0)
20             {
21                 Console.WriteLine("Script Name(s): " + "\n");
22 
23                 foreach (string List in Scripts)
24                 {
25                     Console.WriteLine(List);
26                 }
27             }
28             else Console.WriteLine("No scripts found.");
29 
30             Console.ReadLine();
31         }
32     }
33 }

Script Delete

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using System.Threading.Tasks;
 8 using ScriptDelete.WSDL;
 9 
10 namespace ScriptDelete
11 {
12     class Program
13     {
14         static void Main(string[] args)
15         {
16             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
17 
18             bool Delete = PN.ScriptDelete("Test Script", "YOUR LICENSE KEY");
19 
20             Console.WriteLine("Script Deleted: " + Delete);
21 
22             Console.WriteLine();
23         }
24     }
25 }

Script Load

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using ScriptLoad.WSDL;
 8 
 9 namespace ScriptLoad
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16             
17             string Script = PN.ScriptLoad("Test Script", "YOUR LICENSE KEY");
18 
19             Console.WriteLine("Value of Script Loaded: " + Script);
20             
21             Console.ReadLine();
22         }
23     }
24 }

Script Save

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using ScriptSave.WSDL;
 8 
 9 namespace ScriptSave
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16             
17             bool Save = PN.ScriptSave("Test Script", "Hello, this is a test.", "YOUR LICENSE KEY");
18 
19             Console.WriteLine("Script Saved: " + Save);
20 
21             Console.ReadLine();
22         }
23     }
24 }

Set Incoming Call Script

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using SetIncomingScript.WSDL;
 8 
 9 namespace SetIncomingScript
10 {
11     class Program
12     {
13         static void Main(string[] args)
14         {
15             WSDL.PhoneNotify PN = new WSDL.PhoneNotify();
16 
17             bool Script = PN.SetIncomingCallScript("18885551234", @"Hello, this is a test. ~\EndCall()~ ~\Label(AMD)~ Hello, this is a test. ~\EndCall()", "YOUR LICENSE KEY");
18 
19             Console.WriteLine("Incoming Call Script Set: " + Script);
20 
21             Console.ReadLine();
22         }
23     }
24 }

Upload Sound File

 1 /*http://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL*/
 2 
 3 using System;
 4 using System.Collections.Generic;
 5 using System.Linq;
 6 using System.Text;
 7 using UploadSoundFile.Properties;
 8 using UploadSoundFile.WSDL;
 9 
10 namespace UploadSoundFile
11 {
12     class Program
13     {
14         static void Main()
15         {
16             string fileName = (@"C:\Users\Desktop\Hello.wav";
17 
18             PhoneNotify PN = new PhoneNotify();
19 
20             byte[] ba = System.IO.File.ReadAllBytes(fileName);
21 
22             UploadFileResponse Response = PN.UploadSoundFile(ba, fileName.Substring(fileName.LastIndexOf("\\")), "YOUR LICENSE KEY");
23             
24             Console.WriteLine("Sound File Uploaded: " + Response.UploadSuccessful + "\n" + 
25                               "Sound File Length: " + Response.UploadedLengthInSeconds + " seconds");
26             
27             Console.ReadLine();
28         }
29     }
30 }