문제

I'm struggling to find how Sharepoint works.
My goal is to upload a file to the 'Document Center' of my company from php using the Graph.
I think DocumentLibraries are seen as drives but I can't find the name or ID of the Document folder.

GET https://graph.microsoft.com/beta/sites/mycompany.sharepoint.com/drive/{ID TO FIND}/children

How can I find this ID ? (and if you know how i can find childrens IDs, it could be interesting)

도움이 되었습니까?

해결책

First you can get the libraries data:

https://graph.microsoft.com/beta/sites/{hostName}:/{optionalSubsiteUrl}:/drives

example:

https://graph.microsoft.com/beta/sites/yoursite.sharepoint.com:/sites/testsite:/drives

You will get list of all drives with theirs' id (Property called id). Next you can access drive items like this:

https://graph.microsoft.com/v1.0/drives/{driveId}/root/children

Hope it will help:)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top