function __construct($company, $environment, $instance) { parent::__construct($company, $environment, $instance, 'search'); $this->url = "https://{$this->host}/{$company}.{$environment}.{$instance}/"; }
function __construct($company, $environment, $instance, $token, $user) { parent::__construct($company, $environment, $instance, 'upload'); $this->url = "https://{$this->host}/"; $this->getParams = http_build_query(array('instance_name' => $instance, 'token' => $token, 'user' => $user, 'env' => $environment, 'company_id' => $company)); }