Syntax
Function SendSMS(ByRef AccountID As Integer,ByRef SMSText As String) As CallingResultsEnum
Description
To send SMS to a specific client .After SendSMS method executes SendSMSResultReceived event fire.
Parameters
Part |
Description |
AccountID |
Account number to send the sms for ,value of type Integer |
SMSText |
The contant of SMS ,value of type String. |
Return value
Returns value of type CallingResultsEnum.if the request sent to the server successfully it will return SuccessResult.
Sample
Public WithEvents m_oBOAPI As CVertexFXBOAPI
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim result As VertexFXBOAPI10.CallingResultsEnum
Dim vAccount As COAccount
Dim vClient As COClient
vClient = m_oBOAPI.ClientByIndex(1)
vAccount = m_oBOAPI.AccountByIndex(vClient.ClientID,1)
result = m_oBOAPI.SendSMS(vAccount.AccountID, "Hello")
MsgBox(result.ToString)
End Sub
Private Sub m_oBOAPI_SendSMSResultReceived(ByRef Result As VertexFXBOAPI10.SendSMSResultsEnum) Handles m_oBOAPI.SendSMSResultReceived
MsgBox(Result.ToString)
End Sub
See Also
VertexFX Backoffice API Index
|