# Developer Web API Playground - Notes of geeky oneliners

**URL:** <https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392>\
**Category:** Developers\
**Created:** [January 13, 2020, 9:08pm UTC](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392 "2020-01-13T21:08:40Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [October 15, 2022, 11:02am UTC](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392/10 "2022-10-15T11:02:38Z")

</div>

Check if your Apps are SDK 2 and if they have Updates available

```auto
// Search and display app SDk version. 3 is OK, 2 is deprecated
Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r,b.sdk == 2 ? {[b.name]:b.updateAvailable} : ''), {}));

// Some other simple one-liners
// Get All installed Apps with versions
Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, {[b.name]:b.version}), {}));

// Get Available Updates for Apps in AppStore
Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, {[b.name]:b.updateAvailable}), {}));

// Get list Apps on SDK 2 list disabled
Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, b.sdk === 2 ? {[b.name]:b.sdk} : '' ), {}));

```

---

_[View the full topic](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392)._
