[英]Configure Webhook URL From php
I am trying to use php on my website to be able to dynamically buy and set up new phone numbers as well as release them.我正在尝试在我的网站上使用 php 来动态购买和设置新电话号码以及发布它们。 I have had no problems finding documentation on buying new phones through php, or releasing them, however I can not find a way to set the webhooks.我在通过 php 找到有关购买新手机或发布它们的文档时没有遇到任何问题,但是我找不到设置 webhook 的方法。 I need a way to set the messaging webhook from my website otherwise it does me no good.我需要一种从我的网站设置消息传递 webhook 的方法,否则它对我没有好处。 Hopefully you can help.希望你能帮忙。
$this->client->incomingPhoneNumbers->create([
'phoneNumber' => $twilioPhoneNumber,
"smsUrl" => "abc.com/api/twilio_webhook",
]);
while you are buying a number with 'smsUrl' parameter you can set your webhook URL programmatically当您购买带有“smsUrl”参数的号码时,您可以通过编程方式设置 webhook URL
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.