Код: Выделить всё
require('Services/Twilio.php');
// Find your Account Sid and Token at twilio.com/user/account
$sid = "ACCOUNT_SID";
$token = "AUTH_TOKEN";
// Initialize the client
$client = new IPMessaging_Services_Twilio($sid, $token);
// Retrieve the service
$service = $client->services->get("SERVICE_SID");
// Retrieve the channel
$channel = $service->channels->get("CHANNEL_ID");
// Add the member
$member = $channel->members.create(array(
"identity" => "JOHN",
));
print $member;
Неустранимая ошибка: Вызов неопределенной функции create() в
twilio/sendsms.php[/b] в строке 101
если бы я изменил его на
Код: Выделить всё
$member = $channel->members->create(array(
"identity" => "JOHN",
));
ОШИБКА: Необнаруженное исключение «Services_Twilio_RestException» с
сообщением «Отсутствует обязательный параметр Identity в теле сообщения» в
twilio/twilio-php-master/Services/Twilio.php:297
Пожалуйста, сообщите мне об этом.
Подробнее здесь: https://stackoverflow.com/questions/366 ... -messaging
Мобильная версия