Update twilio.api.php

This commit is contained in:
Namhyeon Go 2019-04-15 14:15:08 +09:00 committed by GitHub
parent 5abc5b2a4c
commit 076035da0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +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",
"Content-Type" => "application/x-www-form-urlencoded",
),
"data" => array(
"Body" => $message,
@ -43,7 +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",
"Content-Type" => "application/x-www-form-urlencoded",
),
"data" => array(
"Url" => $url,