public function send() { $this->result = array(); $requestContent = $this->getRequestContent(); if (!$requestContent) { return false; } $response = \Requests::post($this->api->getApiUrl(), array(), $requestContent); if (!$response) { $this->error = sprintf('Request failed'); return false; } $parser = new \Nathanmac\Utilities\Parser\Parser(); $xml = $parser->xml($response->body); if (!$this->requestSucceed($xml)) { $this->error = sprintf('The xml request returned an invalid call status.'); return false; } $this->result = $xml; return true; }