InoDrive / Connection / disconnect


InoDrive.disconnect(timeout=None)

Have InoDrive Module attempt to Disconnect.

Arguments:
timeout (Number): (Optional) Timeout value in seconds.

Returns: Boolean – True or False Value on successfully disconnecting from the Module.

// 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 })

# Attempt to Disconnect from the InoDrive
await Drive.disconnect()