API Reference

Use the contents method to retrieve the contents (directories and files) of a specific drive.

try { const id = 'drive_id_here'; // The ID of the drive to view its contents. const [data, error] = await sdk.drive.contents({ id }); // Check for success if (error) { console.error(error); } else { console.log('Drive Contents:', data); } } catch (error) { console.error(error.message); }

Params

  • id (string): The ID of the drive for which you want to retrieve contents.

Required API Key Permission

  • Read Directory