VB/.Net Components
You can use mNatives VB/.Net component solution to send message from an ASP.NET web page or Windows Form Application. You can distribute this component with your own SMS enabled applications.
Download dll Sample Scripts
######## GET CREDIT INFORMATION #########
Private Sub GetCredits()
Dim objMnatives As New clsMnatives
Dim response As String
Set objMnatives = New clsMnatives
response = objMnatives.GetCredits("USERID", "PASSWORD")
Debug.print response
End Sub
######## SEND MESSAGE #########
Private Sub SendMessage()
Dim objMnatives As New clsMnatives
Dim response As String
Set objMnatives = New clsMnatives
response = objMnatives.SendMessage("USERID", "PASSWORD", "SENDER", "MOBILENO", "MESSAGE", "MESSAGETYPE")
Debug.print response
End Sub
######## GET DELIVERY STATUS #########
Private Sub GetDeliveryStatus()
Dim objMnatives As New clsMnatives
Dim response As String
Set objMnatives = New clsMnatives
response = objMnatives.GetDLRStatus("USERID", "PASSWORD", "MOBILENO", "RESPONSEID", "DATE")
Debug.print response
End Sub
Parameters
| Parameter Name |
Parameter Description |
Parameter Value |
| USERID |
Account User Id |
User Id provided to the user for authentication |
| PASSWORD |
Account password |
Password provided |
| SENDER |
Account Sender |
Approved Sender Name |
| MOBILENO |
End User Number |
919650111640 (mobile to be separated by comma) |
| MESSAGE |
Message to be sent |
Hi This is a mNatives messaging |
| MESSAGETYPE |
For pushing promotional or Alert messages |
1 (For Pushing Alert Messages)
0 (For Promotional messages) |
| RESPONSEID |
Response Id |
Format is like UserId-152818-592 |
| DATE |
Date on which the response id is received. |
yyyymmdd(20100221) |
Errors
| Error Codes |
Error Description |
| -1 |
RESERVED |
| -2 |
MISSING USERID |
| -3 |
MISSING PASSWORD |
| -4 |
MISSING CONTENTID |
| -5 |
MISSING SENDER |
| -6 |
MISSING MOBILENUMBER |
| -7 |
MISSING MESSAGETEXT |
| -8 |
RESERVED |
| -9 |
MISSING SIURL |
| -10 |
AUTHENTICATION FAILED |
| -11 |
RESERVED |
| -12 |
MESSAGEID REPETED |
| -13 |
CONTENT NOT ALLOWDED |
| -14 |
RESERVED |
| -15 |
MALFORMED XML DATA RECEIVED |
| -16 |
INVALID DNDFLAG VALUE |
| -17 |
RESERVED |
| -18 |
INVALID CLI |
| -19 |
RESERVED |
| -20 |
RESERVED |
| -21 |
MOBILE NUMBER IN DND |
| -22 |
RESERVED |
| -100 |
CREDIT NOT AVAILABLE |
| -101 |
CREDIT NOT SUFFICIENT |
| -102 |
RESERVED |
| -103 |
RESERVED |
| -104 |
APP INTERNAL ERROR |
| -105 |
PRICE NOT FOUND |
| -333 |
PARAMETER MISSING (for credit availability & message Status enquiry) |
| -334 |
URL CALLING FAILED |