onedrive-php-sdk
onedrive-php-sdk copied to clipboard
Lack of Feature: Share and Invite
Add share permission to others: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_invite?view=odsp-graph-online
Create share links: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createlink?view=odsp-graph-online
Add a share folder to your onedrive: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/using-sharing-links?view=odsp-graph-online#add-a-shared-folder-to-the-users-drive
btw, it is useful in China to add share permission without invition in Account A and add it to onedrive root to Account B. Chinese can use onedrive client and mobile app but cannot visit onedrive.live.com
@landall Added support for sharing links in 2.4.0, just released.
See:
- https://github.com/krizalys/onedrive-php-sdk/blob/master/src/Proxy/DriveItemProxy.php#L937
- https://github.com/krizalys/onedrive-php-sdk/wiki/Krizalys-Onedrive-Proxy-DriveItemProxy#createlink
Other requested features planned to be added in future versions.
thanks for your work! i will build a new module to include there feature!
@landall Support for sending sharing invitations has been added in 2.5.0, just released.
See:
- https://github.com/krizalys/onedrive-php-sdk/blob/2.5.0/src/Proxy/DriveItemProxy.php#L1047
- https://github.com/krizalys/onedrive-php-sdk/wiki/Krizalys-Onedrive-Proxy-DriveItemProxy#invite
Enjoy!
For the last feature requested - creating shared folders - I have been working on it but could not include it in 2.5.0 due to an issue I found in Microsoft Graph.
I have proposed solutions to solve it:
- https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/pull/220
- https://github.com/microsoftgraph/msgraph-sdk-php/pull/231
You support is appreciated: hopefully, this can be merged before 2.6.0 :)