OneDrive / onedrive-sdk-ios

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

Unable to retrieve shared folder - Onedrive for Business #185

Open janaraj opened 7 years ago

janaraj commented 7 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 7 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