我目前正在尝试将渠道中的消息与其来源(即以下JSON中的'from'字段)进行匹配:
"messages": [
{
"body": "xxxxxxxxxxxxxxxxxxxxxxxx",
"index": 0,
"channel_sid": "CHxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"from": "xxxxxxxxxxxxxxxxxxxxxxxxx",
"date_updated": "2019-10-30T09:21:42Z",
"type": "text",
"account_sid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxx",
"to": "CHxxxxxxxxxxxxxxxxxxxxxxx",
"last_updated_by": null,
"date_created": "2019-10-30T09:21:42Z",
"media": null,
"sid": "IMxxxxxxxxxxxxxxxxxxxxxxxxx",
"url": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"attributes": "{}",
"service_sid": "xxxxxxxxxxxxxxxxxxxxx",
"was_edited": false
}
换句话说,我想提取“ from”值,并使用该值查询“ from”实体是人工操作员,机器人(即自动驾驶助手)还是呼叫者。我想可能无法将其链接回文件管理器,但可以将其链接到操作员或机器人吗?
致谢
安格斯