public function __construct($server = '', $version = 'v2')
{
$server = rtrim($server, '/');
if ($server) {
$this->server = $server;
}
// echo 'Testing server ' . $this->server . PHP_EOL;
$this->apiversion = $version;
$this->guzzleclient = new GuzzleClient($this->server, array('request.options' => array('exceptions' => false)));
}