Update API
parent
69a1753f5e
commit
7ee29471b5
1 changed files with 1 additions and 1 deletions
2
API.md
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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue