$password = $_POST["password"];
}
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" />