-
Notifications
You must be signed in to change notification settings - Fork 14
Working with Drives
Kunal Varma edited this page Mar 9, 2016
·
1 revision
List the available drives
$client->listDrives();
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);
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 the Default OneDrive Drive (Your personal drive).
$drive = $client->getDefaultDrive();
$defaultDrive = $client->getDrive();
//Switch Drive
$client->selectDrive("1234")
$drive2 = $client->getDrive();
Get the root folder of a drive
$driveRoot = $client->getDriveRoot();
//OR
$driveRoot = $client->getDriveRoot($drive_id);
- Working with Drives
- Fetch Item
- [Fetch Children of a folder](Fetch Folder Items)
- Search
- Item Thumbnails
- [Download Item and Save it to a file](Download Item)
- Create Folder
- Create OR Upload File
- Conflict Behaviors
- [Update an Item's MetaData](Update Item Metadata)
- Copying and Moving Items
- Deleting an Item
- Create Sharing Links