/** * Obtenemos la última versión de un paquete. * @param string $hash Hash de la aplicacion. * @return bool */ public function get_last_version($hash) { // try { $rst = $this->request->call("/paquete/lastVersion/{$this->token}/{$hash}"); if ($rst->is_valid()) { return $rst->get_content()->version; } else { return FALSE; } // } // catch (Exception $e) // { // var_dump($e->getMessage(), $e->getCode()); // return FALSE; // } }