Update twilio.api.php

This commit is contained in:
Namhyeon Go 2019-04-15 14:06:50 +09:00 committed by GitHub
parent 8827bfe8e0
commit 03c1200941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ if(!check_function_exists("twilio_send_message")) {
$response = get_web_json($request_url, "post", array(
"headers" = array(
"Authentication" => array("Basic", $sid, $token),
"Content-Type" => "x-www-form-urlencoded",
),
"data" => array(
"Body" => $message,
@ -42,6 +43,7 @@ if(!check_function_exists("twilio_send_voice")) {
$response = get_web_json($request_url, "post", array(
"headers" = array(
"Authentication" => array("Basic", $sid, $token),
"Content-Type" => "x-www-form-urlencoded",
),
"data" => array(
"Url" => $url,