douruyun8153
douruyun8153
2013-09-11 17:14
浏览 57
已采纳

如何通过呼叫休息呼叫获取CallSid?

I'm using Twilio's rest lib in PHP and making an outgoing call. Can I get the callsid right away i.e.:

$callout = $twilioclient->account->calls->create($client, $phone, $callurl, array("Method"=>"GET"));
$newcallsid=$callout->callsid;

It doesn't seem to be working but, I'm probably doing something wrong.

Thanks in advance for your help.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • douzai9405
    douzai9405 2013-09-11 19:02
    已采纳

    Change callsid to sid

    echo $callout->sid;
    

    You should be able to see all of the properties of the object by echoing it

    echo $callout
    
    点赞 评论