src/Service/MailingList.php
public function getByIds(array $ids)
    {
        if (empty($ids)) {
            return null;
        }

        $parameters = array(
            'api_action' => 'list_list',
            'ids' => implode(',', $ids)
        );

        $response = $this->request($parameters);

        if ($response === null || $response->getStatusCode() !== 200) {
            return null;
        }

        $json = $response->getBody()->getContents();

        return $this->serializer->deserialize(
            $this->removeResultInformation($json),
            'array<integer, ' . \FondOfPHP\ActiveCampaign\DataTransferObject\MailingList::class . '>',
            'json'
        );
    }
public function getByIds(array $ids)
    {
        if (empty($ids)) {
            return null;
        }

        $parameters = array(
            'api_action' => 'list_list',
            'ids' => implode(',', $ids)
        );

        $response = $this->request($parameters);

        if ($response === null || $response->getStatusCode() !== 200) {
            return null;
        }

        $json = $response->getBody()->getContents();

        return $this->serializer->deserialize(
            $this->removeResultInformation($json),
            'array<integer, ' . \FondOfPHP\ActiveCampaign\DataTransferObject\MailingList::class . '>',
            'json'
        );
    }
public function getByIds ( array $ ids ) { if ( empty ( $ ids ) ) { return null ; } $ parameters = array ( 'api_action' => 'list_list' , 'ids' => implode ( ',' , $ ids ) ) ; $ response = $ this -> request ( $ parameters ) ; if ( $ response === null || $ response -> getStatusCode ( ) !== 200 ) { return null ; } $ json = $ response -> getBody ( ) -> getContents ( ) ; return $ this -> serializer -> deserialize ( $ this -> removeResultInformation ( $ json ) , 'array<integer, ' . \ FondOfPHP \ ActiveCampaign \ DataTransferObject \ MailingList :: class . '>' , 'json' ) ; }
Get multiple mailing lists by ids

@param array $ids
@return null|\FondOfPHP\ActiveCampaign\DataTransferObject\MailingList
Get multiple mailing lists by ids