Страница 1 из 1

подскажите по secure.sendSMSNotification

Добавлено: 03 мар 2010, 06:09
buket
покажите пожалуйста пример работы с этим методом и с методом secure.sendNotification

пробую

Код: Выделить всё

<?php
require('VkApi.class.php');

$api = new VkApiNode('179****', 'ExECP*****');

$uids = array (14525); 
$message = "Текст";
$query = $api->sendNotification($uids, $message);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $query);
curl_setopt($ch, CURLOPT_HEADER, 0);
?>
ничего не приходит, или должно быть приложение одобрено?

Re: подскажите по secure.sendSMSNotification

Добавлено: 03 мар 2010, 23:37
Александр
Если ты не добавлял метод secure.sendSMSNotification в VkApi.class.php, то его там нету.

Ты удалил очень важную часть, выполняющую запрос...

Код: Выделить всё

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $query);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_exec($ch);
curl_close($ch);