1

I am developing an application that requires to share files between users using Microsoft Live sdk. But only resource that I came across is by providing a shared link or embed link which expires after some time and are open to public usage. Instead, I want to share files among only certain group of one drive users and that too, permanently. This functionality is already present in one drive itself. Is there any way of doing it using one drive api ?

UPDATE: google drive api supports these.

Dylan Corriveau
  • 2,561
  • 4
  • 29
  • 36

1 Answers1

1

The OneDrive API support the creation of sharing links, which would be easy to send to the group that you want to give access to a specific file or folder. These links do not expire, however they can be revoked.

Here is an example of the kind of request you can use to create one of these links

POST https://api.onedrive.com/v1.0/drive/items/{item-id}/action.createLink
Content-Type: application/json

{
  "type": "view"
}
Peter Nied
  • 1,820
  • 1
  • 13
  • 22
  • Is it possible in Microsoft Live SDK ? – Akshay Gupta May 28 '15 at 12:38
  • Nope, the LiveSDK does not support unlimited duration sharing links – Peter Nied May 28 '15 at 15:42
  • Finally, I used one drive library (C#) available on github by one drive team. Only authentication component had to be changed as it was based on win32. I used web authentication broker and it's working.Thanks Peter. (Permission is still public for these links) – Akshay Gupta Jun 02 '15 at 13:26