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->getQueryMMSDeliveryEndpoint();
} else {
    $endpoints->setQueryMMSDeliveryEndpoint($endpoint);
    $sender = new MMSSend($endpoints, $username, $password);
    $mmsResponse = $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="#" />
Beispiel #2
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->getSendMMSEndpoint();
} else {
    $endpoints->setSendMMSEndpoint($endpoint);
    $sender = new MMSSend($endpoints, $username, $password);
    $address = array();
    $address[0] = $address0;
    $address[1] = $address1;
    $address[2] = $address2;
    $address[3] = $address3;
    $address[4] = $address4;
    $attachments = array();
    error_log('Putting attachments into array: ' . print_r($_FILES, true));
    if (isset($_FILES) && is_array($_FILES)) {
        if (isset($_FILES['attachment0'])) {
            $attachments[0] = $_FILES['attachment0'];
        }
        if (isset($_FILES['attachment1'])) {
            $attachments[1] = $_FILES['attachment1'];
        }
}
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->getMMSDeliverySubscriptionsEndpoint();
} else {
    $endpoints->setMMSDeliverySubscriptionsEndpoint($endpoint);
    $sender = new MMSSend($endpoints, $username, $password);
    $mmsResponse = $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="#" />
}
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->getCancelMMSDeliverySubscriptionEndpoint();
} else {
    $endpoints->setCancelMMSDeliverySubscriptionEndpoint($endpoint);
    $sender = new MMSSend($endpoints, $username, $password);
    $mmsResponse = $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="#" />