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 let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true }) // Start polling User Application_ await Drive.UserApp.startPoll() // Get All Variables let allVariables = await Drive.UserApp.getAllVariables() console.log(allVariables.items)