的我的语音信息API以下是我的PHP脚本网页 “voiceapi.php”什么是错误Infobip
<?php
POST /1/requests
Authorization: Basic <BASE64 encoded>
Content-Type: application/json
Host: oneapi.infobip.com
{
"destinationAddress": "442078374180",
"voiceMessage": "Hello world!",
"language": "en",
"sourceAddress": 442078374181,
"voiceFileUrl": "http://sample.com/hello_world.mp3",
"record": true,
"waitForDtmf": true,
"dtmfTimeout": 5,
"timeout": null,
"retry": false,
"ringTimeout": null,
"machine": null
}
?>
当我执行https://hajanaone.com/voiceapi.php
我收到此错误:
Parse error: syntax error, unexpected '"Authorization"' (T_CONSTANT_ENCAPSED_STRING) in /home/hajanaon/public_html/voiceapi.php on line 4
我的脚本有什么问题?
那么你在这里写的不是PHP ... – vard