SOAP Web Service API
SOAP-API allows you to integrate your application to the Maskyoo SMS gateway using the SOAP protocol.
WSDL
| Resource | URL |
|---|---|
| Document page | https://www.sms.deals/api/ws_soap.php |
| WSDL link | https://www.sms.deals/api/ws_soap.php?WSDL |
Code Examples
PHP (NuSOAP)
<?php
// Nusoap library 'nusoap.php' should be available
require_once('nusoap.php');
$wsdl = "https://www.sms.deals/api/ws_soap.php?WSDL";
$soap = new soapclient($wsdl, "wsdl");
$proxy = $soap->getProxy();
$message = "msg";
$dest = "0501234567";
$sender = "0501987654";
$sendtime = "";
$user = "[email protected]";
$pass = "password";
$callback_url = "";
$result = $proxy->send_sms($message, $dest, $sender, $sendtime, $user, $pass, $callback_url);
echo($result);
?>
C# (.NET)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApplication1.sms_deals;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
private void button1_Click(object sender, EventArgs e)
{
var sms = new sms_deals.SoapSRV();
string message = sms.send_sms("msg", "0501234567", "0501987654", "",
"[email protected]", "password", "", "", "");
MessageBox.Show(message);
}
}
}
Function Parameters
The send_sms function accepts the following parameters:
| Parameter | Type | Description |
|---|---|---|
message | String | SMS text content |
dest | String | Destination phone number |
sender | String | Sender phone number or name |
sendtime | String | Scheduled send time (optional) |
user | String | Account email/username |
pass | String | Account password |
callback_url | String | Delivery status callback URL (optional) |