Find MailChimp List by list Id
@param string $listId
@return array list http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#read-get_lists_list_id
483054
public function findById($listId)
    {
        $listData = $this->mailchimp->get("lists/$listId");

        if (!$this->mailchimp->success()) {
            $this->throwMailchimpError($this->mailchimp->getLastResponse());
        }
        return $listData;
    }
624048
public function deleteMergeField($listId, $mergeId)
    {
        $result = $this->mailchimp->delete("lists/$listId/merge-fields/$mergeId");

        if (!$this->mailchimp->success()) {
            $this->throwMailchimpError($this->mailchimp->getLastResponse());
        }

        return $result;
    }
1160863
public function getTemplates($sModuleId = null)
    {
        if (is_null($sModuleId)) {
            $sModuleId = $this->getId();
        }

        if (!$sModuleId) {
            return [];
        }

        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();

        return \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getCol("SELECT oxtemplate FROM oxtplblocks WHERE oxmodule = '$sModuleId' AND oxshopid = '$sShopId'");
    }
721389
def get_list(self, list_id):
        
        return List(tweepy_list_to_json(self._client.get_list(list_id=list_id)))
24843
public function getSubscriberEmails($listId)
    {
        $emails = [];
        $members = [];
        $offset=0;
        $maxresult = 200;
        $result = $this->mailchimp->get("lists/$listId/members", ['count'=> $maxresult]);

        if (!$this->mailchimp->success()) {
            $this->throwMailchimpError($this->mailchimp->getLastResponse());
        }

        $totalItems = $result['total_items'];
        $members = array_merge($members, $result['members']);

        while ($offset < $totalItems) {
            $offset+=$maxresult;
            $result = $this->mailchimp->get("lists/$listId/members", [
                        'count'         => $maxresult,
                        'offset'        => $offset
                    ]);

            if (!$this->mailchimp->success()) {
                $this->throwMailchimpError($this->mailchimp->getLastResponse());
            }
            $members = array_merge($members, $result['members']);
        };

        foreach ($members as $key => $member) {
            array_push($emails, $member['email_address']);
        }

        return $emails;
    }
1319334
public function getList_emailByEmailIdAndListId($emailID, $listID) {
        return $this->model
            ->where('email_id', $emailID)
            ->where('list_id', $listID)
            ->first()
        ;
    }
431431
private function get(string $email, string $listId): array
    {
        try {
            /** @var Collection $result */
            $result = $this->api->request(
                'lists/' . $listId . '/members/' . $this->getHashedEmail($email),
                array(),
                'get'
            );

            // will return the one and only member array('id', ...) from Collection
            return $result->all();
        } catch (\Exception $e) {
            return [];
        }
    }
843795
public function ListManagement_Get_Lists($type) {
        $ret = false;

        if (is_string($type) === true) {
            $type = rawurlencode($type);
            $ret = $this->_call_api('get', "{$this->_url}/lists/$type", array());
        }

        return $ret;
    }
666220
public function subscribeform($listID) {

        if (!$this->subscribeToList->getListByID($listID)) {
            return view('lasallecrmlistmanagement::subscribe-unsubscribe-list.list_invalid', [
                'title'        => 'Invalid List',
            ]);
        }

        return view('lasallecrmlistmanagement::subscribe-unsubscribe-list.subscribe_form', [
            'title'            => 'List Sign-up',
            'email_field_only' => Config::get('lasallecrmlistmanagement.listmgmt_subscribe_form_email_field_only'),
            'list'             => $this->subscribeToList->getListnameByListId($listID),
            'listID'           => $listID,
        ]);
    }
689063
public function getList($orderId)
    {
        $db = $this->getDb();
        $data = $db->getAll('SELECT * FROM `oepaypal_orderpayments` WHERE `oepaypal_orderid` = ' . $db->quote($orderId) . ' ORDER BY `oepaypal_date` DESC');

        return $data;
    }
861611
public function status(string $listId, string $email): string
    {
        $this->checkListExists($listId);
        $memberId = md5(strtolower($email));
        try {
            $member = $this->api->getMember($listId, $memberId);
        } catch (Throwable $e) {
            if ($this->api->responseCodeNotFound()) {
                return 'not found';
            }
            throw $e;
        }
        if (!$this->memberStatusIsValid($member)) {
            throw new MailchimpException('Unknown error, status value not found: ' . var_export($member, true));
        }
        return $member['status'];
    }
643703
public function delete($listId, Subscriber $subscriber)
    {
        $subscriberHash = $this->mailchimp->subscriberHash($subscriber->getEmail());
        $result = $this->mailchimp->delete("lists/$listId/members/$subscriberHash");

        if (!$this->mailchimp->success()) {
            $this->throwMailchimpError($this->mailchimp->getLastResponse());
        }

        return $result;
    }
1210445
protected synchronized void listRecovery(String listId) {

        CmsHtmlList list = getListObject(this.getClass(), getSettings());
        if ((list != null) && !list.getId().equals(listId)) {
            list = null;
        }
        setList(list);
    }
866459
public function findInListOutOfSync(MailingList $list)
    {
        return $this->createQueryBuilder('s')
            ->innerjoin('s.mailingList', 'm')
            ->andWhere('m.id = :list_id')
            ->andWhere('s.updatedAt > s.syncedAt OR s.syncedAt IS NULL')
            ->setParameters([
                'list_id'   => $list->getId(),
            ])
            ->getQuery()
            ->getResult();
    }
1124272
public function getEmailByEmailId($emailID) {
        $email = $this->model->where('id', $emailID)->first();

        return $email->title;
    }
1139829
public function getList($list)
	{
		$result = $this->client->get("lists/{$list}");
		return $result ? new Resources\MailingList($this, $result) : null;
	}
556192
public function lists($id = null)
    {
        if ($id !== null) {
            $this->setId($id);
        }

        return $this->getList();
    }