InoDrive / UserApp / setVar


InoDrive.UserApp.setVar(argv, value)

Set Variable(s) with new value out to User Application, does not poll User Application Variable List.

Arguments:
Argv (String, Integer) Variable Name (String) or ID (Integer) or a Tuple for multiple Variable’s containing Name/ID paired with a new Value.
Value (Boolean, Integer, Floating Point) New Value for single Variable set.

// Import InoDrive API Library
 import { InoDriveApiJS }  from ( "ck-inodrive-api" ) 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True})

// Set New Variable Value
Drive.UserApp.setVar("foo", 24)