PageSourceSearch

https://purificacion-tolima.gov.co/SiteAssets/V3/componentes/AcordeonTransparencia/js/services.js

js purificacion-tolima.gov.co collected 2026-10-01 12:28:28 UTC 979 bytes, 30 lines download raw bytes

1const URLSITE = `${location.protocol}//${location.host}`,
2	MODULE = 'Acordeon',
3	PATH = 'Transparencia',
4	COLUMNS = 'Title,Pagina, NAcordeon, Numeral,NuevaPestana';
5
6export const consulteAcordion = async () => {
7	const URL = `${URLSITE}/${PATH}/_api/web/Lists/getbytitle('${MODULE}')/items?&select=${COLUMNS}&$top=1000`;
8
9	try {
10		const response = await fetch(URL, {
11			method: 'GET',
12			headers: {
13				Accept: 'application/json;odata=verbose',
14				'Content-Type': 'application/json;odata=verbose',
15			},
16		});
17
18		if (response.ok) {
19			const data = await response.json();
20			return data.d.results;
21		} else {
22			const errorData = await response.json();
23			console.error('Error al consultar el acordeón', errorData);
24			alert(`Error al consultar el acordeón: ${errorData.error.message.value}`);
25		}
26	} catch (error) {
27		console.error('Error al consultar el acordeón', error);
28		alert(`Error al consultar el acordeón: ${error.message}`);
29	}
30};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.