的我的語音信息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