InoDrive / UserApp / writeVar
InoDrive.UserApp.writeVar(argv, value)
Write Variable(s) with new value out to User Application, polls User Application Variable List.
Arguments:
• Argv Variable Name (String) or ID (Integer)
• Value (Boolean, Integer, Floating Point) New Value for single Variable write.
• Props Optional additional property argument.
// Import InoDrive API Library import { InoDriveApiJS } from "ck-inodrive-api" // Instatiate the API let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false }) // Instantiate InoDrive Object let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true }) // Write New Variable Value await Drive.UserApp.writeVar("foo", 128)