API Reference

Use the getAll method to retrieve a list of all drives.

try {
  const [data, error] = await sdk.drive.getAll();

   // Check for success
  if (error) {
    console.error(error);
  } else {
    console.log("List of Drives:", data);
  }
} catch (error) {
  console.error(error.message);
}

Required API Key Permission

  • ReadDirectory