זה לכאורה גם בget
<?php
//*******************************************************************************
// Function: mpSendSMS
// Author: MicroPay
// Parameters:
// Required:
// token - the token you created in MicroPay
// msg - the message yo want to send
// to - comma seperated phone list or pool id in micropay system
// from - phone number that will appear as source of the SMS
// Optional:
// date - date for scheduling in the format "2009-08-17 14:33" -> YYYY-MM-DD HH:MM
// Return:
// result of the request
//*******************************************************************************
function mpSendSMS($token, $msg, $to, $from, $date = "")
{
$msg = urlencode($msg);
$request = "http://www.micropay.co.il/ExtApi/ScheduleSms.php";
$request .= "?get=1&token=".$token."&msg=".$msg."&from=".$from;
if (strlen($to) > 8) $request .= "&list=".$to;
else $request .= "&pid=".$to;
if ($date != "")
{
$DateValue = strtotime($date);
$DateParts = getdate($DateValue);
$request .= "&dy=".$DateParts["year"];
$request .= "&dm=".$DateParts["mon"];
$request .= "&dd=".$DateParts["mday"];
$request .= "&dh=".$DateParts["hours"];
$request .= "&di=".$DateParts["minutes"];
}
$curlSend = curl_init();
curl_setopt($curlSend, CURLOPT_URL, $request);
curl_setopt($curlSend, CURLOPT_RETURNTRANSFER, 1);
$curlResult = curl_exec($curlSend);
$curlStatus = curl_getinfo($curlSend, CURLINFO_HTTP_CODE);
curl_close($curlSend);
if ($curlStatus === 200) return $curlResult;
else return "ERROR";
}
?>