|
| [VB.NET] | |
| Sub Send
(NotificationID As String, Target As String, Text As String)
|
|
| NotificationID |
| Notification ID |
| Target |
| Target SMS number |
| Text |
| Message Text |
| 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 SMS notification object |
| | Dim objSMS As New SMSRef.SMS()
|
| | ' Create server notification object |
| | Dim SMSNotifID As
String = sess.CreateSMSNotification(SessionID) |
| | objSMS.Send(SMSNotifID, "+11005118196", "This is SMS Notification Message") |
| | objSMS.Release(SMSNotifID) |
| | sess.Release(SessionID) |
| | Catch e As Exception |
| | 'Print exception message e.Message |
| | sess.Release(SessionID) |
| | End Try |