Check SMS balance with PHP

If you have a PHP application and would like to integrate check SMS balance feature, you can follow the example provided below.

To understand more about our iSMS API Key features, please visit our Developer API page.


All available features and configurations will be displayed at the iSMS Developer API page. Integrate our SMS API into your PHP application and enjoy our SMS services.

Please click below to find out about other programming language samples.


After logging into isms.com.my member console, you should able to see your sms credit balance as illustrated in the image below.


How to Create Bulk SMS Scheduler With PHP Code


As you can see their name appears in the credit balance section (just below the navigation menu). You are also able to see your credit's expiry date (1 year after date of purchase) as you reload your credits.


Bulk SMS Malaysia frequently updates the services and maintains high delivery rate. With the latest addition by our iSMS team, we can use PHP to deploy HTTPS to check our SMS credit balance by changing the un=xxx and pwd=xxx to your own iSMS username and password in the PHP sample code as shown.


http://isms.com.my/isms_balance.php?un=xxx&pwd=xxx


As a result, the balance will be shown on the screen as highlighted below.


How to Create Bulk SMS Scheduler With PHP Code

For a start, create a HTML file and a PHP file.


<html>
<body>
<form action="check_balance.php" method="POST">
<p>username isms:<input type="text" name="name"/>
<p>password isms:<input type="password" name="password"/>
<p><input type="submit" value="submit"/>
</form>
</body>
</html>

The sample codes will form a HTML form like below:-


How to Create Bulk SMS Scheduler With PHP Code

User will fill in the username & password into the text fields and click Submit button to submit.


In check_balance.php PHP file, add in the following code.


<?php


//We create our own function to submit our link

//Certain hosts do not support the usage of "fopen"

function ismscURL($link){


   $http = curl_init($link);


   curl_setopt($http, CURLOPT_RETURNTRANSFER, TRUE);

   $http_result = curl_exec($http);

   $http_status = curl_getinfo($http, CURLINFO_HTTP_CODE);

   curl_close($http);


   return $http_result;

}


if($_POST['name']!=NULL){

   $name=$_POST['name'];

}


if($_POST['password']!=NULL){

   $pass=$_POST['password'];

}


$result = ismscURL("https://www.isms.com.my/isms_balance.php?un=".urlencode($name)."&pwd=".urlencode($pass));

echo $result;


?>


After user click on submit button in the form, a http request will initiate and retrieve the balance as highlighted in the screenshot below.


How to Create Bulk SMS Scheduler With PHP Code

Alternatively, you may login to your iSMS member console to check your credit balance.


Other Contact Methods

For further enquiries, please contact us via our contact page or the information below:

E-mail | sales@mobiweb.com.my

Note to registered users: Please include your Username in the email.

If operators are busy, please call the next number below.


Phone Numbers:

  • 1800 87 7061 (Malaysia Toll Free)
  • +604-642 0621 (Penang, Malaysia)
  • +603-2780 3880 (Line 1 Kuala Lumpur, Malaysia)
  • +603-7980 1388 (Line 2 Kuala Lumpur, Malaysia)
  • +6017-9713727 (Kelantan, Malaysia)
  • +6017-511 8885 (Johor Bahru, Malaysia)
  • +65 8301 0483 (Singapore)
  • +66 2026 0321 (Thailand)
  • +63 9212 358008 (Philippines)
  • +612 8310 5560 (Australia)

Fax:

  • +604-646 8367 (Penang, Malaysia)
  • +603-7980 2388 (Kuala Lumpur, Malaysia)

Articles

 

SMS Coverage for All Countries Worldwide

A B C D E F G H I J K L M N O P Q R S T U V Y Z
divider