Skip to content

Working with Drives

Kunal Varma edited this page Mar 9, 2016 · 1 revision

List Drives

List the available drives

$client->listDrives();

Select a Drive

Select the drive to work on. However, if you do not select a drive, the current selected drive defaults to your personal drive.

$client->selectDrive($drive_id);

Get Selected Drive

If a drive is not selected using the selectDrive() method before calling this method, the selected drive defaults to your personal drive.

$drive = $client->getDrive();

Get Default Drive

Get the Default OneDrive Drive (Your personal drive).

$drive = $client->getDefaultDrive();

Switch Drives

$defaultDrive = $client->getDrive();
//Switch Drive
$client->selectDrive("1234")
$drive2 = $client->getDrive();

Select Drive Root

Get the root folder of a drive

$driveRoot = $client->getDriveRoot();
//OR
$driveRoot = $client->getDriveRoot($drive_id);

Table of Contents

Getting Started

Examples

Clone this wiki locally