Get the latest AIR SDK version

Recently Harman updated their AIR SDK pages

and if before you had to do some parsing to obtain the latest AIR SDK version,
now it is super easy as everything reside in a JSON config file

this page content
https://airsdk.harman.com/download

is configured by this
https://airsdk.harman.com/api/config-settings/download

to obtain a nice pretty printed JSON

$ curl -s https://airsdk.harman.com/api/config-settings/download | jq .

you’ll get

{
  "latestVersion": {
    "id": 21,
    "versionName": "33.1.1.190",
    "supVersion": "33.1",
    "latest": true,
    "published": true,
    "downloadable": false,
    "links": {
      "SDK_AS_MAC": "/api/versions/33.1.1.190/sdks/AIRSDK_MacOS.zip",
      "SDK_AS_WIN": "/api/versions/33.1.1.190/sdks/AIRSDK_Windows.zip",
      "SDK_FLEX_WIN": "/api/versions/33.1.1.190/sdks/AIRSDK_Flex_Windows.zip",
      "SDK_FLEX_MAC": "/api/versions/33.1.1.190/sdks/AIRSDK_Flex_MacOS.zip",
      "RELEASE_NOTES": "/api/versions/33.1.1.190/release-notes/Release_Notes_AIR_SDK_33.1.1.190.pdf"
    }
  },
  "id": 123456
}

and so to obtain the latest version number

$ curl -s https://airsdk.harman.com/api/config-settings/download | jq -r .latestVersion.versionName

that would output 33.1.1.190 (without quotes)

If you decide to monitor the latest AIR SDK version by running a script at regular intervals, please be responsible, like once every N hours.

3 Likes