【发布时间】:2015-03-19 19:49:31
【问题描述】:
我有这个代码块在 Twilio 消息列表中进行迭代.. 但是对于 DateSent(或 DateCreated),我不断收到 null,我我正在寻找 bakc 消息的时间戳。其他所有内容(其他字段,from,to,body 都可以正常工作)
$client = new Services_Twilio($twilio['sid'],$twilio['token']);
// Loop over the list of messages echo each key property
foreach ($client->account->messages as $message) {
$list_sms_messages[]=array('timestamp'=>$message->dateSent,
'from'=>$message->from ,
'to'=>$message->to,
'body'=> $message->body );
}
根据 API DateSent 或 (DateCreated) 应该在消息列表对象中。任何想法
【问题讨论】:
标签: javascript php twilio