Last active
April 21, 2023 16:32
-
-
Save sertdfyguhi/9409ea303f8e34c4cd9820feb9b7d10b to your computer and use it in GitHub Desktop.
Scriptable app widget to get shibas from shine.online
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let widget = new ListWidget() | |
let req = new Request("https://shibe.online/api/shibes") | |
let res = await req.loadJSON() | |
let imgreq = new Request(res[0]) | |
let img = await imgreq.loadImage() | |
widget.addText("Shibes in their natural habitat.").centerAlignText() | |
widget.addImage(img).centerAlignImage() | |
widget.presentLarge() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment