Discussions
Display
over 2 years ago by Evie(edited)
I see this is fetching but how do I display the content? I'm trying to display the property details on a page. I see is calling properly but how do I display?
Here is what I am using:
const options = {
method: 'GET',
headers: {
Accept: 'text/plain',
'X-ApiKey': 'qL9Oq**'
}
};
fetch('https://api.lodgify.com/v1/properties/XXXX', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));