Update API

j 2024-06-22 09:16:01 +00:00
parent 69a1753f5e
commit 7ee29471b5

2
API.md

@ -46,7 +46,7 @@ To use the API you can use Ox.App if you use Ox.js, or look at [pandora_client](
}).then(result => { }).then(result => {
result.data.items.forEach(item => { result.data.items.forEach(item => {
const div = document.createElement("div") const div = document.createElement("div")
div.innerHTML = `<h1><a href="https://pad.ma/m/${item.id}/player">${item.title}</a></h1><div><div><img src="https://pad.ma/${item.id}/128p.jpg"></div><div>${item.summary}</div>` div.innerHTML = `<h1><a href="https://pad.ma/m/${item.id}/player">${item.title}</a></h1><div><div><img src="https://pad.ma/${item.id}/128p.jpg"></div><div>${item.summary}</div></div>`
document.body.appendChild(div) document.body.appendChild(div)
}) })
}) })