How to Create Task Scheduler With PHP Code

Bulk SMS Malaysia API is a great choice when integrating message delivery function to your website or application. iSMS Malaysia API is flexible, simple to use and easy to understand for developers to work on connecting with iSMS Gateway. This Bulk SMS Scheduler API will help you to set the SMS schedule without logging into iSMS admin console.


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 task scheduler samples.



1. Firstly, register a username and password from iSMS Register Page.


Bulk SMS Scheduler API only requires a few information from you such as username, password and your mobile number. It is free. You may click HERE to learn how to reload your iSMS account.


For Task Scheduler, go to (main navigation menu) SMS > Task Scheduler


You will find that the Task Scheduler is empty as you have not created any task scheduler.


How to Create Bulk SMS Scheduler With PHP Code


2. Create PHP file


Create a PHP file with the file name below. You may use any file name. It is advisable to create a without any empty spacing in the name.


How to Create Bulk SMS Scheduler With PHP Code


3. Bulk SMS API Scheduler PHP Coding


Add in the PHP code into the PHP file as below:


<?php


$username = "isms";

$password = "isms123";

$dstno = 6016xxxxxxx;

$msg = "text message over here";

$det = "TEST";

$tr = "weekly";

$type = 1;

$senderid = "isms";

$date = "2013-06-16";

$hour = 12;

$min = 45;

$week = 1;

$month = 1;

$day = 1;


$sendlink = "http://www.isms.com.my/isms_scheduler.php?un=".urlencode($username)."&pwd=".urlencode($password)."&dstno=".$dstno."&msg=".urlencode($msg)."&det=".
urlencode($det)."&tr=".$tr."&type=".$type."&sendid=".urlencode($senderid)."&date=".$date."&hour=".$hour."&min=".
$min."&week=".$week."&month=".$month."&day=".$day;


$handle = fopen($sendlink, "r");


if ($handle) {

while (($buffer = fgets($handle, 4096)) !== false) {

echo "This is your task scheduler ID :" .$buffer;

}

if (!feof($handle)) {

echo "Error: unexpected fgets() fail\n";

}

fclose($handle);

}


?>


After running the PHP file, a HTTP request will be initated and the browser address bar will displayed the address as below:


https://www.isms.com.my/isms_scheduler.php?un=isms&pwd=isms&dstno=601xxxxxx&msg=hello&det=TEST&tr=onetime&type=1&sendid=isms&date=2013-06-14&hour=08&min=15&week=1&month=1&day=1

An ID will be attached to every task scheduler you create. If you need to do update or delete task scheduler using our Bulk SMS Malaysia API, you can use the ID in your application to do so in future.


How to Create Bulk SMS Scheduler With PHP Code


4. It works!


The task scheduler is created.


How to Create Bulk SMS Scheduler With PHP Code

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)
  • +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