我一直在尝试一切,我只是需要帮助。谢谢 我需要body和mobileNumber值,我需要以cdv格式分别设置每组值。 例 “你好小猫!” ,“6502642742” “我在家”,“6502642742”
我在最后一次尝试了一些事情
$son = json_decode($json);
echo $son->sessions[0]->message[0]->body;
{
"response":null,
"sessions":[
{
"message":[
{
"to":null,
"body":"Hello little cat!",
},
"mobileNumber":"6502642742",
},
{
"to":null,
"body":"I am home",
},
"mobileNumber":"6502642742",
}
],
"session":"26e2fa57-5d42-4678-bda5-6b233d05b754c:257539402",
"conversation":[
{
"lastContactFirstName":"",
"lastContactLastName":"",
}
]
}
],
"success":true
}