@ToniHunter274
Posted
Kudos bro.. This is amazing. I'm also working on this project but I'm having on how to integrate an API into a webpage...Please any tips you could give me would be highly appreciated.
@Auddity
Posted
@ToniHunter274 Thanks! I appreciate that.
What part of the process are you having an issue with? Fetching the data or getting the data to display on screen?
There's a few ways to make a request to an API. On this project I used Async/Await and put the fetch method in a try/catch block. It's a more strait forward way for handling the response from the API.
To get a good understanding of the process you should study XMLHttpRequest and handling Promises in Asynchronous JavaScript (AJAX).
For displaying the data, it depends on the API provider and it's structure. At the heart of that is knowing how to access object properties and their values.
@ToniHunter274
Posted
@Auddity thank you very much,I would check out AJAX and try to understand it.thank you for the tip.