Skip to content

Commit

Permalink
closes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed May 4, 2017
1 parent db21355 commit a11cf8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Controller/Adminhtml/Lists/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

class Get extends Action
{
const MAX_LISTS = 200;

/**
* @var \Ebizmarts\MailChimp\Helper\Data
*/
Expand Down Expand Up @@ -49,7 +51,7 @@ public function execute()
$param = $this->getRequest()->getParams();
$apiKey = $param['apikey'];
$api = $this->_helper->getApiByApiKey($apiKey);
$lists = $api->lists->getLists();
$lists = $api->lists->getLists(null,null,null,self::MAX_LISTS);
$result = [];
foreach($lists['lists'] as $list) {
$result[] = ['id'=> $list['id'], 'name'=> $list['name']];
Expand Down

0 comments on commit a11cf8f

Please sign in to comment.