/** * Criar uma instancia * * * @param string $resource */ public function __construct($autokey = true) { $this->base_uri = Config::getBaseURI(); if ($autokey) $this->default_params['key'] = Config::getAuthKey(); }