Skip to content

added file methods

Compare
Choose a tag to compare
@dcblogdev dcblogdev released this 07 Feb 15:59
· 155 commits to master since this release

Added methods:

List files and folders

MsGraph::files()->getFiles($path = null, $order = 'asc');

List drive

MsGraph::files()->getDrive();

List drives

MsGraph::files()->getDrives();

Search items

MsGraph::files()->search($term);

Download file by id

MsGraph::files()->downloadFile($id)

Delete file by id

MsGraph::files()->deleteFile($id)

Create folder pass the folder and the path where the folder will be created if no path is provided the root is used.

MsGraph::files()->createFolder($name, $path = null)

Get file/folder item by id

MsGraph::files()->getItem($id)

Rename file/folder pass the new name and the id

MsGraph::files()->rename($name, $id)

Upload file passes the name and the uploadPath (where the file is on your server) and the path to where the file will be stored if no path is provided the root is used.

MsGraph::files()->upload($name, $uploadPath, $path = null)