onedrive-api | OneDrive API module for Node.js | REST library
kandi X-RAY | onedrive-api Summary
kandi X-RAY | onedrive-api Summary
OneDrive API module for Node.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new upload session .
- Download a graph from the specified graph .
- Upload a single file with the given parameters .
- Create a new folder
- Update an item
- List results in the given parameters
- Creates a request endpoint for the app
- Get metadata of an item
- Deletes an item
- Synchronously change the page
onedrive-api Key Features
onedrive-api Examples and Code Snippets
Community Discussions
Trending Discussions on onedrive-api
QUESTION
I'm using the library one-drive-api and trying to implement an enpoint to meve item from folder to another here's my code
...ANSWER
Answered 2021-Sep-21 at 16:19You should be able to get this to work by stringifying the body beforehand.
QUESTION
I am able to access OneDrive items of all the users in Office 365 business account using a free trial created from this link.
However, in order to make it work I needed to give my application below permission, which eventually allows this app to access OneDrive items of all the users in this tenant because of these permissions.
File.Read.All -> Delegate
File.Read.All -> Application
User.Read -> Delegate
User.Read.All -> Delegate
Site.Read.All -> Delegate
Now, my requirement is to access OneDrive document of only one users from this tenant and block the application from accessing documents from other users, or access document of any personal account (@hotmail.com/@live.com).
Please let me know if there is any way or in case I am doing anything wrong with the application I registered.
Asked the same question here but bot told to ask to azure team in stackoverflow https://github.com/OneDrive/onedrive-api-docs/issues/1219
Appreciate any help.
...ANSWER
Answered 2020-Feb-11 at 06:31Firstly, you need to understand the differences between Application permission and Delegate permission.
Application permission means App-only, the application acts as a user but there is no user sign in.
Delegate permission means App + User, a user will need to log into the application and access the resources.
So based on the permissions you have provided, I can't tell if your application requires a user to log in. If yes, Delegate permissions will take effect. Based on Delegated permissions, Files.Read.All
allows the app to read all files the signed-in user can access. If the signed in user can access others' document, then your app can access them too. So if you control the access permissions for the user in OneDrive or SharePoint, your app with this signed in user will have the same permissions.
If your app doesn't require a signed in user, Application permissions will take effect in this case. Based on Application permissions, Files.Read.All
allows the app to read all files in all site collections without a signed in user. So this scenario does not meet your needs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install onedrive-api
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page