Published
Edited
Sep 13, 2021
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
getChatList = async () => {
const cors = `https://luciyer-cors.herokuapp.com/`
const endpoint = new URL(`${cors}https://quarantexting-data.herokuapp.com/api/chats`)
const result = await fetch(endpoint)
return result.json()

}
Insert cell
Insert cell
getChatData = async (chat_id) => {
const cors = `https://luciyer-cors.herokuapp.com/`
const endpoint = new URL(`${cors}https://quarantexting-data.herokuapp.com/api/chats/${chat_id}`)
const result = await fetch(endpoint)
return result.json()
}
Insert cell
Insert cell
getChatList()
Insert cell
getChatData("wjz")
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more