D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
vendor
/
api
/
Filename :
indice.php
back
Copy
const tabela = 'igpm'; const apikey = '2a11bf4b-0a8c-478c-a560-0f835eb7678f'; const params = new URLSearchParams(); params.append('tabela', tabela); params.append('apikey', apikey); const url = 'https://client-api.debit.com.br/atualiza-v1/lerTabela'; fetch(url, { method: 'POST', body: params, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, }) .then(response => { if (!response.ok) { throw new Error('Network response was not ok: ' + response.statusText); } return response.json(); }) .then(data => { console.log(data); }) .catch(error => { console.error('There was a problem with the fetch operation:', error); });