Model/Apiconnector/Client.php
public function getCampaigns($skip = 0, $select = 1000)
    {
        $url = sprintf('%s%s?select=%s&skip=%s',
            $this->getApiEndpoint(),
            self::REST_DATA_FIELDS_CAMPAIGNS,
            $select,
            $skip
        );
        $this->setUrl($url)
            ->setVerb('GET');

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET CAMPAIGNS ' . $response->message . ' api user : '
                . $this->getApiUsername();
            $this->helper->debug('getCampaigns', [$message]);
        }

        return $response;
    }
public function getCampaigns($skip = 0, $select = 1000)
    {
        $url = sprintf('%s%s?select=%s&skip=%s',
            $this->getApiEndpoint(),
            self::REST_DATA_FIELDS_CAMPAIGNS,
            $select,
            $skip
        );
        $this->setUrl($url)
            ->setVerb('GET');

        $response = $this->execute();

        if (isset($response->message)) {
            $message = 'GET CAMPAIGNS ' . $response->message . ' api user : '
                . $this->getApiUsername();
            $this->helper->debug('getCampaigns', [$message]);
        }

        return $response;
    }
public function getCampaigns ( $ skip = 0 , $ select = 1000 ) { $ url = sprintf ( '%s%s?select=%s&skip=%s' , $ this -> getApiEndpoint ( ) , self :: REST_DATA_FIELDS_CAMPAIGNS , $ select , $ skip ) ; $ this -> setUrl ( $ url ) -> setVerb ( 'GET' ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ message = 'GET CAMPAIGNS ' . $ response -> message . ' api user : ' . $ this -> getApiUsername ( ) ; $ this -> helper -> debug ( 'getCampaigns' , [ $ message ] ) ; } return $ response ; }
Get list of all campaigns.

@param int $skip     Number of campaigns to skip
@param int $select   Number of campaigns to select
@return mixed

@throws \Exception
Get list of all campaigns .