Real, working code samples for MetaReach's SMS API in every major language — send SMS, track
delivery, and check balance directly from your own application.
Replace YOUR_API_KEY and YOURID (your 6-character DLT-approved sender ID) with your own credentials. Full parameter list, optional parameters, and error codes are on the SMS API documentation page.
PHP
Send an SMS from a PHP application using a single file_get_contents() call — no library required.
Using System.Net.WebClient for legacy VB.NET applications:
Code
Dim apikey As String = "YOUR_API_KEY"
Dim senderid As String = "YOURID"
Dim number As String = "91XXXXXXXXXX"
Dim message As String = HttpUtility.UrlEncode("Hello there")
Dim url As String = "https://sms.metareach.in/vb/apikey.php?apikey=" & apikey &
"&senderid=" & senderid & "&number=" & number & "&message=" & message
Dim client As New WebClient()
Dim response As String = client.DownloadString(url)
Console.WriteLine(response)
Need the Full API Reference?
Mandatory & optional parameters, all error codes, delivery report (DLR) and balance-check endpoints, and personalized bulk sending are covered in the complete reference.