Twilio建议开发人员使用旧的SMS/Messages
API资源切换到新的/Messages
资源(请参阅API documentation以及problems with SMS status when using the old version)。
我正在使用twilio-php帮助程序库,这是Twilio对PHP开发的官方建议。该库似乎正在向/2010-04-01/Accounts/{sid}/SMS/Messages/
发送请求(例如,here和here)。
问题:
答案 0 :(得分:3)
Messages
资源为here。那是你的更新版本。Messages
docs。似乎任何一行都是这样的
$client->account->sms_messages->// ... and so on
应改为:
$client->account->messages->// ... and so on