onedrive-php-sdk icon indicating copy to clipboard operation
onedrive-php-sdk copied to clipboard

Lack of Feature: Share and Invite

Open landall opened this issue 5 years ago • 4 comments

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 avatar Oct 31 '18 20:10 landall

@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.

krizalys avatar Sep 01 '19 07:09 krizalys

thanks for your work! i will build a new module to include there feature!

landall avatar Sep 04 '19 19:09 landall

@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!

krizalys avatar Sep 23 '19 15:09 krizalys

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 :)

krizalys avatar Sep 23 '19 15:09 krizalys