added/changed around a few scripts

This commit is contained in:
awex 3
2022-04-30 19:58:41 -04:00
parent 35c57dcc8d
commit 723686dc90
3 changed files with 21 additions and 23 deletions
+11
View File
@@ -0,0 +1,11 @@
const clipSpan = document.getElementById("clip");
fetch("https://developers.medal.tv/v1/latest?userId=215577&limit=1", {
method: "GET",
headers: {
"authorization": "pub_ecEyOlY5G2u9476DMGOxcxiNcaOTEjmq",
"Content-Type": "application/json"
}
}).then(async function(response) {
const data = await response.json();
clipSpan.innerHTML = `${data.contentObjects[0].embedIframeCode}<br>${data.contentObjects[0].contentTitle}`;
});