Hi all,
There’s this script from the examples in HomeyScript,
It can retrieve certain data from an app’s appstore page:
const res = await fetch('https://apps-api.athom.com/api/v1/app/com.athom.homeyscript');
if (!res.ok) {
throw new Error(res.statusText);
}
const body = await res.json();
log(`${body.liveBuild.name.en} (${body.id}) v${body.liveVersion}`);
const stars = Array(Math.round(body.rating))
.fill('⭐️')
.join('');
log(`Rating: ${stars}`);