OneDrive / onedrive-sdk-ios

OneDrive SDK for iOS
https://dev.onedrive.com
Other
101 stars 88 forks source link

Unable to retrieve shared folder - Onedrive for Business #185

Open janaraj opened 6 years ago

janaraj commented 6 years ago

Hello,

I'm trying to retrieve list of items from a shared folder but always getting 404 not found error. Have added the permission "Read and Write items in all site collections" under Office 365 sharepoint online in Azure portal. Below is final URL that gets framed. I went through all the documents but still no luck. Could someone please help ?

https://{tenant}-my.sharepoint.com/_api/v2.0/me/drives/{driveid}/items/{itemid}/children

Regards, Jana

Have posted this issue under onedrive api docs https://github.com/OneDrive/onedrive-api-docs/issues/725

janaraj commented 6 years ago

Hi, I got a reponse from the other issue that I shouldn't using "/me" when requesting for drives. Could you please let me know a sample on how to frame the URL without "/me" in the URL ?

This is what I need inorder to access to shared folder.

https://{tenant}-my.sharepoint.com/_api/v2.0/drives/{driveid}/items/{itemid}/children