1
我使用MailChimp API。 我用指數法:如何過濾結果?
public function index()
{
return $this->MailChimp->get("campaigns");
}
Get方法:
public function get($method, $args = array(), $timeout = self::TIMEOUT)
{
return $this->makeRequest('get', $method, $args, $timeout);
}
結果我得到很大的海量的信息:
{
"campaigns": [
{
"id": "",
"web_id": ,
"type": "",
"create_time": "",
"archive_url": "",
"long_archive_url": "",
"status": "",
"emails_sent": 0,
"send_time": "",
"content_type": "",
"needs_block_refresh": ,
]
},
如何篩選這個數組,在結果我得到的只有我需要的字段(如id
和web_id
)?