Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

On this page

Keyman Cloud CDN Version API

KeymanWeb is now deployed via CDN on https://s.keyman.com. The get-version API allows you to query the latest version of the code available on the CDN.

get-version should be called via HTTP GET to retrieve the latest build number. It will return an integer build number. In case of error, you should choose a known build number to reference (e.g. 377).

https://r.keymanweb.com/code/get-version

This build number can be embedded in the reference to the KeymanWeb code, e.g., for PHP:

$kmwbuild = @file_get_contents('https://r.keymanweb.com/code/get-version');

if($kmwbuild === FALSE || !is_numeric($kmwbuild)) {
  // If the get-version API fails, we'll use the latest known version
  $kmwbuild = 408;
}
echo "<script src='https://s.keyman.com/kmw/engine/$kmwbuild/keymanweb.js'></script>";

Version Information and History

Released 19 January 2015

Documentation updated 19 February 2017 to change secure site references to https://s.keyman.com/

See Also

KeymanWeb Developer Home

Feedback

If you have any feedback or questions, just fill in this form to get in touch.