/** * Constructor * * Sets up the client */ public function __construct() { $this->restClient = Services::get('restclient'); $this->restClient->addHeader('Accept', 'application/json'); $this->restClient->setFormat('json'); $this->loadConfig(); $this->restClient->setUrl($this->getURL()); $this->restClient->addParam('key', $this->getConfig('key')); }