iSMSUG SMS Sending API Documentation

The iSMSUG SMS Sending API allows developers to programmatically send SMS messages using a simple HTTP GET request. This documentation provides detailed information on how to use the API effectively.

API Endpoint

https://ismsug.com/send_api_sms

Request Method

The API accepts HTTP GET requests.

Request Parameters

The following parameters are required for sending an SMS:

Example PHP Code

Below is an example PHP code demonstrating how to use the iSMSUG SMS Sending API:

<?php
$curl = curl_init();

// Replace placeholder values with your actual credentials and parameters
$email = 'your_email';
$password = 'your_password';
$sender_id = 'your_sender_id';
$phone_number = 'recipient_number';
$message = 'your_message';

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://ismsug.com/send_api_sms?email=$email&password=$password&sender_id=$sender_id&phone_number=$phone_number&message=$message",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Cookie: ci_session=your_ci_session'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>
    

Response

The API response will contain information about the success or failure of the SMS sending process. Handle the response appropriately in your application logic. A successful response typically includes details about the sent message or a confirmation.

Important Notes

Security Considerations

Error Handling

Understand the different error responses provided by the API and implement robust error-handling mechanisms in your code.