API

http://www.dyocore.com/api/sendMessage.php

Example of using simple POST in PHP
<?
$ch = curl_init('http://www.dyocore.com/api/sendMessage.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=youraccount&password=xxx&to=mobile_number&text=testing");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
?>

Sample 2 using XML format in PHP
<?
$DATA_XML = "<sendmsg>
<smsrequest>
<customer>
<username>your-account-at-dyocore</username>
<password>your-password</password>
<to>mobile-number-to-be-sent</to>
<text>Your-text-message-go-here</text>
<method>smpp</method>
</customer>
</smsrequest>
</sendmsg>";

$ch = curl_init('http://www.dyocore.com/api/sendMessage.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "DATA_XML=$DATA_XML");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
?>

Here is an example API that will enable you to send SMS message through our gateway.
http://www.dyocore.com/api/ChatterSMS.php?wsdl

Example of using SOAP program in PHP:

<?php
require_once('nusoap.php');
$wsdl="http://www.dyocore.com/api/ChatterSMS.php?wsdl";
$client=new soapclient($wsdl, 'wsdl');
$param=array(
"username"=>"yourusernamehere", // Your Resgister Login Account
"password"=>"xxxxxx", // Your password here
"sender"=>"+16195192314, +48853948765", // See notes below for correct format
"fullsms"=>"This is a test", // Message to be sent
);

$status = $client->call('sendSMS', $param);

$stat_par=array(
"statuscode"=>$status,
);

echo $client->call('getSendStatus', $stat_par);
?>

NOTES:

Sender - The format are +16195192314 (US) and +48853948765 (INT). Multiple numbers must be separated by comma.

The routine sendSMS return status code as below:

0 - Internal Error

1 - Successful

2 - Not enough credits in your account

3 - Invalid Account

 

 

API Using ASP
API Using JAVA