I work with MailChimp API. I use index method:
public function index()
{
return $this->MailChimp->get("campaigns");
}
Get method:
public function get($method, $args = array(), $timeout = self::TIMEOUT)
{
return $this->makeRequest('get', $method, $args, $timeout);
}
As a result I get big massive of information:
{
"campaigns": [
{
"id": "",
"web_id": ,
"type": "",
"create_time": "",
"archive_url": "",
"long_archive_url": "",
"status": "",
"emails_sent": 0,
"send_time": "",
"content_type": "",
"needs_block_refresh": ,
]
},
How filter this array that in result I get only fields as I need (such as id
and web_id
)?