javascript - Get shared OneDrive documents using Microsft Graph and OneDrive JS SDK -


the microsoft graph can provide list items shared signed-in user. want integrate rest functionality onedrive file picker javascript v7.0 sdk. goal of integration use onedrive sdk open view of documents shared signed in user.

as first step hoping give guidance on advanced options can add following code in order integrate microsoft graph calls onedrive integration.

var odoptions = {   clientid: "insert-app-id-here",   action: "share | download | query",   multiselect: true,   openinnewwindow: true,   advanced: {},   success: function(files) { /* success handler */ },   cancel: function() { /* cancel handler */ },   error: function(e) { /* error handler */ } } 

unfortunately, onedrive js sdk not support showing shared files in view far. want build view yourselves depending on story.

assuming have valid graph access token, means files.read in scope, can make request https://microsoft.graph.com/v1.0/me/drive/view.sharedwithme

more info graph: http://graph.microsoft.io/en-us/docs/api-reference/v1.0/resources/drive view.sharedwithme: https://dev.onedrive.com/drives/shared_with_me.htm


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -