src/CampaignAdmin.php
public function readCampaigns()
    {
        $response = new HTTPResponse();
        $response->addHeader('Content-Type', 'application/json');
        $hal = $this->getListResource();
        $response->setBody(json_encode($hal));
        return $response;
    }
public function readCampaigns()
    {
        $response = new HTTPResponse();
        $response->addHeader('Content-Type', 'application/json');
        $hal = $this->getListResource();
        $response->setBody(json_encode($hal));
        return $response;
    }
public function readCampaigns ( ) { $ response = new HTTPResponse ( ) ; $ response -> addHeader ( 'Content-Type' , 'application/json' ) ; $ hal = $ this -> getListResource ( ) ; $ response -> setBody ( json_encode ( $ hal ) ) ; return $ response ; }
REST endpoint to get a list of campaigns.

@return HTTPResponse
REST endpoint to get a list of campaigns .