Twilio 获取 twiml 或 webhook 中的发件人数量 laravel
Twilio get number of sender in twiml or webhook laravel
我有一个网络钩子,一旦网络钩子被触发,它就会保存发件人号码。
如何获取触发 webhook 的发件人号码?
我已经找到问题的答案了。
public function receivedSms(Request $request){
$response = new Twiml();
echo $request['From'],
echo $request['Body']
return response($response)
->header('Content-Type', 'text/xml');
}
https://www.twilio.com/blog/2016/08/receive-sms-php-twilio.html
我有一个网络钩子,一旦网络钩子被触发,它就会保存发件人号码。 如何获取触发 webhook 的发件人号码?
我已经找到问题的答案了。
public function receivedSms(Request $request){
$response = new Twiml();
echo $request['From'],
echo $request['Body']
return response($response)
->header('Content-Type', 'text/xml');
}
https://www.twilio.com/blog/2016/08/receive-sms-php-twilio.html