endpoints = new Config_Endpoints(); } public function loadEndpoints() { $this->endpoints = new Config_Endpoints(); $this->endpoints->load($this->server); if ($this->endpoints->incomplete()) { $this->endpoints->discover($this->server); if ($this->token) { $this->endpoints->discoverMedia($this->token); } $this->endpoints->save($this->server); } } } ?>