/** * Execute the console command. * * @return mixed */ public function handle() { $lists = CampaignMonitor::clients(Config::get('campaignmonitor.client_id'))->get_lists(); foreach ($lists->response as $list) { $this->info('Name: ' . $list->Name); $this->info('List Id: ' . $list->ListID); $this->info('---------------------'); } }
/** * Execute the console command. * * @return mixed */ public function handle() { $clients = CampaignMonitor::account()->get_clients(); foreach ($clients->response as $client) { $this->info('Name: ' . $client->Name); $this->info('Client Id: ' . $client->ClientID); $this->info('---------------------'); } }