restClient = new RestClient($apiKey, $apiEndpoint); } public function post($endpointUrl, $postData = array(), $files = array()){ return $this->restClient->postRequest($endpointUrl, $postData, $files); } public function get($endpointUrl, $queryString = array()){ return $this->restClient->getRequest($endpointUrl, $queryString); } public function delete($endpointUrl){ return $this->restClient->getRequest($endpointUrl); } public function put($endpointUrl, $putData){ return $this->restClient->putRequest($endpointUrl, $putData); } public function MessageBuilder(){ return new MessageBuilder(); } public function BatchMessage($autoSend = true){ return new BatchMessage($this->restClient, $autoSend); } } ?>