Пример #1
0
if (isset($_POST["password"])) {
    $password = $_POST["password"];
}
if (isset($_POST["endpoint"])) {
    $endpoint = $_POST["endpoint"];
}
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $registrationId = "3456";
    $maxBatchSize = 2;
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getRetrieveSMSEndpoint();
} else {
    $endpoints->setRetrieveSMSEndpoint($endpoint);
    $receiver = new SMSRetrieve($endpoints, $username, $password);
    $smsResponse = $receiver->retrieveMessages($registrationId, $maxBatchSize);
}
?>
<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->getCancelSMSReceiptSubscriptionEndpoint();
} else {
    $endpoints->setCancelSMSReceiptSubscriptionEndpoint($endpoint);
    $receiver = new SMSRetrieve($endpoints, $username, $password);
    $smsResponse = $receiver->cancelReceiptNotifications($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="#" />
    $endpoint = $_POST["endpoint"];
}
$endpoints = new ServiceEndpoints();
if (!isset($submit)) {
    $destinationAddress = "3456";
    $notifyURL = "http://www.yoururl.here/notifications/DeliveryInfoNotification";
    $criteria = "Vote";
    $notificationFormat = "JSON";
    $callbackData = "doSomething()";
    $clientCorrelator = "12345";
    $username = "******";
    $password = "******";
    $endpoint = $endpoints->getSMSReceiptSubscriptionsEndpoint();
} else {
    $endpoints->setSMSReceiptSubscriptionsEndpoint($endpoint);
    $receiver = new SMSRetrieve($endpoints, $username, $password);
    $smsResponse = $receiver->subscribeToReceiptNotifications($destinationAddress, $notifyURL, $criteria, $notificationFormat, $clientCorrelator, $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="#" />