我正在使用Twilio Rest API通过向$arr = json_decode($response_a, true);
echo $arr['rows'][0]['elements'][0]['distance']['text'];
发送请求来使用参与者呼叫sid获取有关参与者的详细信息。
作为回应,我找不到任何参与者的电话会议sid参数。任何人都可以建议我从参与者呼叫sid中找出它吗?
答案 0 :(得分:1)
参与者列表资源是Conference instance资源的子资源。
资源URI:
/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}
您会在returning a representation of the participant找到call_sid
和conference_sid
的第一个示例。
{
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"call_sid": "CA386025c9bf5d6052a1d1ea42b4d16662",
"conference_sid": "CFbbe46ff1274e283f7e3ac1df0072ab39",
"date_created": "Wed, 18 Aug 2010 20:20:10 +0000",
"date_updated": "Wed, 18 Aug 2010 20:20:10 +0000",
"end_conference_on_exit": true,
"muted": false,
"start_conference_on_enter": true,
"uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFbbe46ff1274e283f7e3ac1df0072ab39/Participants/CA386025c9bf5d6052a1d1ea42b4d16662.json"
}