The Official BitUpdate API is Here!
Use this as a simple way to integrate BitUpdate into your iOS Shortcuts without requiring a separate shortcut.
BitUpdate Custom is what I'm calling it. I've been planning something like this for a while, a shortcut where you, the developer, can make your own UI and choose which features to support, making the BitUpdate user experience even faster than BitUpdate Lite.
Documentation
GET /custom/v0-1/check
Endpoint to check for updates for a given shortcut ID.
Parameters
- id: The unique identifier of the shortcut.
- source: Where to look for your shortcut's ID. Currently only supports RoutineHub's API. Defaults to
rh
.
Example:
curl "https://bitupdate.vercel.app/custom/v0-1/check?id=14309&source=rh"
Returns
- updateID: The ID of the latest update.
- iCloudURL: The iCloud URL of the latest version.
- notes: Release notes for the update.
- current: The latest version.
- release: Release date of the latest version.
Example:
{
"updateID":45089,
"iCloudURL":"https://www.icloud.com/shortcuts/ba2ef62a7dc745c5b45bc9f09b030299",
"notes":"- Shortcut list when creating an announcement/update is now sorted alphabetically\r\n- Other fixes for creating updates and announcements\r\n\r\nAlso, the official chatbit_ website is here! Go to https://chatbit.glitch.me to check it out!",
"current":"1.9.2",
"release":"February 22, 2024"
}
POST /custom/v0-1/check
Endpoint to check for updates and handle version comparison.
Parameters
- version: The current version of the shortcut.
- id: The unique identifier of the shortcut.
- prefs: An array containing preference values. Click here for more details.
- source: Where to look for your shortcut's ID. Currently only supports RoutineHub's API. Defaults to
rh
.
Example:
curl -X POST -H "Content-Type: application/json" -d '{"id":14309,"version":"1.9.1a","source":"rh"}' https://bitupdate.vercel.app/custom/v0-1/check/
Returns
- type: The type of update (rollback, update, current, announcement).
- updateID: The ID of the latest update.
- iCloudURL: The iCloud URL of the latest version. Does not count as a download.
- downloadURL: The download URL for the version of the shortcut. Also adds to the download counter.
- notes: Release notes for the update.
- current: The latest version.
- release: Release date of the latest version.
Example:
{
"iCloudURL":"https:\/\/www.icloud.com\/shortcuts\/ba2ef62a7dc745c5b45bc9f09b030299",
"release":"February 22, 2024",
"current":"1.9.2",
"notes":"- Shortcut list when creating an announcement\/update is now sorted alphabetically\r\n- Other fixes for creating updates and announcements\r\n\r\nAlso, the official chatbit_ website is here! Go to https:\/\/chatbit.glitch.me to check it out!",
"type":"update",
"updateID":45089,
"downloadURL":"https://routinehub.co/download/45089"
}