The CumulusGate JS Library is currently in beta! - This source code, functions and samples are subject to change as we add / modify features to resemble the .Net counterparts.



License Sample - JavaScript (beta)


Instructions:

  • Include the following libraries into your solution:
    - src="https://cumulusgate.com/js/device-uuid.js"
    - src="https://cumulusgate.com/js/lic.js"
  • Call getLicense with the following parameters: useremail, userpassword, appid
  • Be sure to have a function named onLicenseReceived() in your JavaScript code. You may choose what you want to do in this function, but it MUST exist. The CumulusGate JS library will attempt to call onLicenseReceived() once license info is available.
  • Be sure to have a function named onLicenseStatusChanged(cgmessage) in your JavaScript code. You may choose what you want to do in this function, but it MUST exist. The CumulusGate JS library will attempt to call onLicenseStatusChanged(cgmessage) when a license is checked in- or out. The cgmessage parameter contains a text message, returned from the CumulusGate License Library - you may want to interpret these messages or display them somewhere.



Test Section:

Try out with your credentials: