Usage
InoDrive(argv)
Main InoDrive API Class.
Arguments: Argv (Object):
• Target (String): InoDrive target identifier either through Name, Serial Number, or IPv4 Address.
• AutoConnect (Boolean): (Optional) True or False value to automatically have the Module connect.
Returns: Object – An Object that can manage the Module’s File’s, Connection, IO, and Main User Application.
// Import InoDrive API Library import { InoDriveApiJS } from "ck-inodrive-api" // Initialize the Api as your first step in all applications let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false }) // Instatiate InoDrive object and connect by Name, IP address, or serial number. This creates the Connection Handle, any variable can be used, here it is “Drive” let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true })