How to get User's OneDrive Files list - onedrive

How to get the List of files from User's OneDrive in Angular or WebAPI by providing User's Credentials and Giving Scope Files.ReadWrite.All

Related

Google Drive API: The user does not have sufficient permissions for this file using API Key

I'm trying to integrate Google Drive using the SDK with my app written in VB.Net using API Key and I'm following this tutorial https://developers.google.com/api-client-library/dotnet/get_started#simple
What happens is that when calling the ExecuteAsync method, I receive back an Exception saying that the user does not have sufficient permissions for this file.
Basically, I only have the API key (with restriction to access only Google Drive API) and I don't want to ask the user for permissions, because I'd like to use a specific account (so everyone would be sending files to that account).
I couldn't find a way to "link" this API Key to a specific account also.
I ended up using a service account for the Google Drive API.
The idea here was quite simple, where I created this account and downloaded a generated JSON file that is used by the SDK to Authenticate and call the API.
With this service account, I didn't use the API Key and I could leverage Permissions
and set permissions to each user on each created folder.

Get external URL with Picker for a file in OneDrive Business

I want to get a permanent external link to a file in OneDrive Business using JavaScript Picker API. The link should not expire and should allow to download the file without logging in.
I have enabled external file sharing in my OneDrive Business account. In the UI, I can get a link like https://[my_host].sharepoint.com/personal/apps_tmp_onmicrosoft_com/_layouts/15/guestaccess.aspx?docid=...&authkey=.... This link is what I need.
But when I pick the same file in the picker, I get a link https://[my_host].sharepoint.com/personal/apps_tmp_onmicrosoft_com/_layouts/15/guestaccess.aspx?guestaccesstoken=...&docid=2_...&rev=1. This link requires to log in.
There is no such problem with a personal OneDrive. Is it possible to get a link to the file in OneDrive Business with authkey using the Picker?
Solved the issue by adding createLinkParameters: { type: 'view', scope: 'anonymous' }.

How to get OneDrive profile detail Using OneDrive API in MAC

I want to use OnedDrive API to get OneDrive type, whether it is Personal or Bussiness.I know cid of Onedrive. How can i get this from commandline. Is there any possibility. I tried http, where we can get info by requesting.

Dropbox Folder App - Empty folders

We've created a simple Dropbox Folder App on one user, and authorized it on another. Both users now have the same folders "App" and "App name".
Is these folders supposed to have the same content? Because on one of the users the folder is empty.
Are we missing something here?
It's not expected that two different users of a single Dropbox API app will automatically get the same content in their respective app folders.
The Dropbox API is built such that each user can link their own Dropbox account to an app in order to interact with their own files and folders. If the app uses the "app folder" permission, an app folder is automatically created in each user's account when they link the app. The app folder is empty by default, and the user can put files in their via any means they want (e.g., the API app itself, the Dropbox web site, the Dropbox desktop client, etc.).
A Dropbox API app folder is not like a shared folder. It does not sync across different user accounts, and in fact can't be shared with other users.
If you want all users of your app to have certain content in their account, you'll need to have your app upload the files to each account.

Invite People to folder with Onedrive for Buisness RESTful API

I'm using the onedrive RESTful API to integrate a webapp and share file between a group of people. I manage to correctly authenticate a user and get its access token, create folders and upload files.
The problem I'm having is finding a way to invite people to a folder. The closest documentation I have found is about permissions, where it talks about updating permissions (read, write, creating links) however I cant get a way to invite a specific user to a folder like its done directly in the One drive official webapp OneDrive Invite people to folder img
We don't officially support adding permissions through OneDrive API yet. If you need to do this in a production environment right now you'd need to use the SharePoint REST API to add the user permissions.
In the near future we'll be adding an invite function to the OneDrive API. While we haven't released documentation on it yet, you can see the unofficial syntax for it by looking at the service metadata information for the consumer service (https://api.onedrive.com/v1.0/$metadata). Of course, usage of this API would not be supported until it is documented on dev.onedrive.com though.
-Ryan