0
這抓取關鍵細節是twilio api代碼。這裏'callsid'是一個查詢字符串。在PHP
$url = 'http://xxxx.com/phone/customer?to='.$number;
$call= $this->twilio->account->calls->get($this->request->query->get('CallSid'));
$call->update(array(
'Url' => $url,
'Method' => 'GET',
'StatusCallbackMethod' => 'GET',
'StatusCallback' => 'http://xxxx.com/phone/log/callback'
));
我的問題是,我們可以在查詢字符串的地方放置一個數組鍵來獲取關鍵細節?像這樣:
$url = 'http://xxxx.com/phone/customer?to='.$number;
$call = $this->twilio->account->calls->get($this->request->query->get('url'));
$call->update(array(
'Url' => $url,
'Method' => 'GET',
'StatusCallbackMethod' => 'GET',
'StatusCallback' => 'http://xxxx.com/phone/log/callback'
));
當您嘗試使用替代方法時會發生什麼? –
HHAVNT TRIED?.. – william
您應該。你可以回答你自己的問題。 –