NPH Mexico

Noticias/Historias

var myHeaders = new Headers(); myHeaders.append("apikey", "bnSdYxAuuAT9kbz95tENdXGrDe311xoJ"); var requestOptions = { method: 'GET', redirect: 'follow', headers: myHeaders }; fetch("https://api.apilayer.com/exchangerates_data/convert?to=DOP&from=USD&amount=10", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));