Conduit API
Case Study
GetInfo
 
This function retrieves information on a specific app and its environmental parameters. For example, it can be used to determine the app’s context (toolbar or engine) and then run context-specific functions on it.
 
GetInfo()
 
None.
 
JSon Object containing the following info:
Parameter Description Range Type
.appID App identifier   string
.context.embedLocation The location of the App (Embedded App, Gadget or Web Browser) Embeded App/Gadget/ Web Browser string
.context.host The host of this app (Engine or Toolbar) Engine/Toolbar string
.general.browser The current browser type IE or Firefox string
.general.browserVersion The current browser version e.g. “8.0.7600.16385” string
.general.OS The current Operating System type e.g. “Windows” string
.general.OSVersion The current Operating System version e.g. “6.1” string
.general.toolbarName Toolbar name e.g. “Demo” string
.general.toolbarVersion Toolbar version e.g. “5.7.2.2” string
.size.height The height of the gadget/component > 0 integer
.size.width The width of the gadget/component. > 0 integer
 
This function can be used both with the HTML App and with the gadget window. *Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example contains a button. Clicking on the button will display an HTML page with several app and environmental data.