CURLOPT_URL => 'https://t...content-available-to-author-only...s.ru/apiSms/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"apiKey": "MFMvyVoa35PhShVfJTw4CxgY15U1bkEKLkX6YRUFl6pvmTVx6J2B21GgfTwj",
"sms": [
{
"channel": "char",
"sender": "VIRTA",
"text": "test1",
"phone": "79523348347"
}
]
}',
CURLOPT_HTTPHEADER
=> array( 'Content-Type: application/json'
),
));
echo $response;
JGN1cmwgPSBjdXJsX2luaXQoKTsKCmN1cmxfc2V0b3B0X2FycmF5KCRjdXJsLCBhcnJheSgKICBDVVJMT1BUX1VSTCA9PiAnaHR0cHM6Ly90Li4uY29udGVudC1hdmFpbGFibGUtdG8tYXV0aG9yLW9ubHkuLi5zLnJ1L2FwaVNtcy9jcmVhdGUnLAogIENVUkxPUFRfUkVUVVJOVFJBTlNGRVIgPT4gdHJ1ZSwKICBDVVJMT1BUX0VOQ09ESU5HID0+ICcnLAogIENVUkxPUFRfTUFYUkVESVJTID0+IDEwLAogIENVUkxPUFRfVElNRU9VVCA9PiAwLAogIENVUkxPUFRfRk9MTE9XTE9DQVRJT04gPT4gdHJ1ZSwKICBDVVJMT1BUX0hUVFBfVkVSU0lPTiA9PiBDVVJMX0hUVFBfVkVSU0lPTl8xXzEsCiAgQ1VSTE9QVF9DVVNUT01SRVFVRVNUID0+ICdQT1NUJywKICBDVVJMT1BUX1BPU1RGSUVMRFMgPT4newogICAgImFwaUtleSI6ICJNRk12eVZvYTM1UGhTaFZmSlR3NEN4Z1kxNVUxYmtFS0xrWDZZUlVGbDZwdm1UVng2SjJCMjFHZ2ZUd2oiLAogICAgInNtcyI6IFsKICAgICAgICB7CiAgICAgICAgICAgICJjaGFubmVsIjogImNoYXIiLAogICAgICAgICAgICAic2VuZGVyIjogIlZJUlRBIiwKICAgICAgICAgICAgInRleHQiOiAidGVzdDEiLAogICAgICAgICAgICAicGhvbmUiOiAiNzk1MjMzNDgzNDciCiAgICAgICAgfQogICAgXQp9JywKICBDVVJMT1BUX0hUVFBIRUFERVIgPT4gYXJyYXkoCiAgICAnQ29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9qc29uJwogICksCikpOwoKJHJlc3BvbnNlID0gY3VybF9leGVjKCRjdXJsKTsKCmN1cmxfY2xvc2UoJGN1cmwpOwplY2hvICRyZXNwb25zZTs=
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://t...content-available-to-author-only...s.ru/apiSms/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"apiKey": "MFMvyVoa35PhShVfJTw4CxgY15U1bkEKLkX6YRUFl6pvmTVx6J2B21GgfTwj",
"sms": [
{
"channel": "char",
"sender": "VIRTA",
"text": "test1",
"phone": "79523348347"
}
]
}',
CURLOPT_HTTPHEADER => array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;