InoDrive / UserApp / getAllVariables


InoDrive.UserApp.getAllVariables()

Get all Variable(s) in User Application that are set to Read or Read/Write. Does not poll Variable List.

Returns: Variables (Object) – Object containing all Variable’s with their ID’s, Type’s, Access Level’s, Value’s, and Write Permission’s.

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

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

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

// Start polling User Application_
await Drive.UserApp.startPoll()

// Get All Variables
allVariable = await Drive.UserApp.getAllVariables()
console.log(allVariable.items)