}
if (isset($_POST["endpoint"])) {
    $endpoint = $_POST["endpoint"];
}
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $senderAddress = "tel:+123456789";
    $notifyURL = "http://www.yourURL.here";
    $callbackData = "doSomething()";
    $clientCorrelator = "123456";
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getSMSDeliverySubscriptionsEndpoint();
} else {
    $endpoints->setSMSDeliverySubscriptionsEndpoint($endpoint);
    $sender = new SMSSend($endpoints, $username, $password);
    $smsResponse = $sender->subscribeToDeliveryNotifications($senderAddress, $clientCorrelator, $notifyURL, $callbackData);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>    
    <title>
      GSM World | OneAPI Toolkit
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="GSM, GSMA, GSM Association, Mobile, Mobile World Congress, Mobile Asia Congress, Mobile Awards, Global Mobile Awards, 3GSM, Mobile Broadband, Spectrum, Development Fund, Mobile Money, Mobile Innovation, Pathfinder, Open Connectivity, Fraud" />
    <meta name="description" content="The GSMA represents the interests of the worldwide mobile communications industry. Spanning 219 countries, the GSMA unites more than 750 of the world&rsquo;s mobile operators, as well as 200 companies in the broader mobile ecosystem." />
    <link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="toolkit.css" type="text/css" media="screen" />

    <link rel="shortcut icon" href="#" />
Example #2
0
 function EnviaMsg($Destinatario, $Texto)
 {
     // Envia mensagem
     $Env = new SMSSend(0);
     $Env->setRecipient($Destinatario);
     $Env->setText($Texto);
     $Env->setIDMsg($this->getID());
     $Env->Envia();
 }
if (isset($_POST["password"])) {
    $password = $_POST["password"];
}
if (isset($_POST["endpoint"])) {
    $endpoint = $_POST["endpoint"];
}
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $senderAddress = "tel:+123456789";
    $requestId = "123456";
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getQuerySMSDeliveryEndpoint();
} else {
    $endpoints->setQuerySMSDeliveryEndpoint($endpoint);
    $sender = new SMSSend($endpoints, $username, $password);
    $smsResponse = $sender->queryDeliveryStatus($senderAddress, $requestId);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>    
    <title>
      GSM World | OneAPI Toolkit
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="GSM, GSMA, GSM Association, Mobile, Mobile World Congress, Mobile Asia Congress, Mobile Awards, Global Mobile Awards, 3GSM, Mobile Broadband, Spectrum, Development Fund, Mobile Money, Mobile Innovation, Pathfinder, Open Connectivity, Fraud" />
    <meta name="description" content="The GSMA represents the interests of the worldwide mobile communications industry. Spanning 219 countries, the GSMA unites more than 750 of the world&rsquo;s mobile operators, as well as 200 companies in the broader mobile ecosystem." />
    <link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="toolkit.css" type="text/css" media="screen" />

    <link rel="shortcut icon" href="#" />
Example #4
0
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $senderAddress = "tel:+123456789";
    $address0 = "tel:+13500000991";
    $address1 = "tel:+13500000992";
    $message = "Hello World!";
    $clientCorrelator = "123456";
    $notifyURL = "http://application.example.com/notifications/DeliveryInfoNotification";
    $senderName = "ACME Inc.";
    $callbackData = "Callback-data-goes-here";
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getSendSMSEndpoint();
} else {
    $endpoints->setSendSMSEndpoint($endpoint);
    $sender = new SMSSend($endpoints, $username, $password);
    $address = array();
    $address[0] = $address0;
    $address[1] = $address1;
    $address[2] = $address2;
    $address[3] = $address3;
    $address[4] = $address4;
    $smsResponse = $sender->sendSMS($senderAddress, $address, $message, $clientCorrelator, $notifyURL, $senderName, $callbackData);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>    
    <title>
      GSM World | OneAPI Toolkit
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
}
if (isset($_POST["password"])) {
    $password = $_POST["password"];
}
if (isset($_POST["endpoint"])) {
    $endpoint = $_POST["endpoint"];
}
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $subscriptionId = "sub789";
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getCancelSMSDeliverySubscriptionEndpoint();
} else {
    $endpoints->setCancelSMSDeliverySubscriptionEndpoint($endpoint);
    $sender = new SMSSend($endpoints, $username, $password);
    $smsResponse = $sender->cancelDeliveryNotifications($subscriptionId);
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>    
    <title>
      GSM World | OneAPI Toolkit
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="GSM, GSMA, GSM Association, Mobile, Mobile World Congress, Mobile Asia Congress, Mobile Awards, Global Mobile Awards, 3GSM, Mobile Broadband, Spectrum, Development Fund, Mobile Money, Mobile Innovation, Pathfinder, Open Connectivity, Fraud" />
    <meta name="description" content="The GSMA represents the interests of the worldwide mobile communications industry. Spanning 219 countries, the GSMA unites more than 750 of the world&rsquo;s mobile operators, as well as 200 companies in the broader mobile ecosystem." />
    <link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="toolkit.css" type="text/css" media="screen" />

    <link rel="shortcut icon" href="#" />