|
[VB.NET] | |
Sub Prepare
(NotificationID As String, Number As String)
|
|
NotificationID |
Notification ID |
Number |
Phone number |
VB.NET
Example |
Switch to language:
[C#] |
|
| 'Create personalizer object and Session object |
| Dim pers As New PersonalizerRef.Personalizer()
|
| Dim sess As New SessionRef.Session()
|
| Dim SessionID As
String = "" |
| Try |
| SessionID = pers.CreateSession("LogonName", "Password") |
| 'Create Phone notification object |
| Dim objPhone As New PhoneRef.Phone()
|
| Dim PhoneNotifID As
String = sess.CreatePhoneNotification(SessionID) |
| objPhone.Call(PhoneNotifID,"1-800-123-4567") |
| objPhone.Prepare(PhoneNotifID, "1-800-123-4567") |
| objPhone.HangUp(PhoneNotifID) ' close connection |
| objPhone.Release(PhoneNotifID) |
| sess.Release(SessionID) |
| Catch e As Exception |
| 'Print exception message e.Message |
| sess.Release(SessionID) |
| End Try |