Bearer logo
Microsoft OneDrive API logo

Microsoft OneDrive API

API documentation
https://docs.microsoft.com/en-us/onedrive/developer/rest-api/?view=odsp-graph-online

Developer website
https://developer.microsoft.com/en-us/onedrive

Incorrect or missing information? Help us

What is the Microsoft OneDrive API?

Store and share your photos, videos, and documents, the Microsoft-way. The Microsoft OneDrive API lets you retrieve and upload files with ease, amongst other things.

How to use the Microsoft OneDrive API?

NodeJSRubyPythonPHP
// npm install @bearer/node
bearer
.integration('microsoft_onedrive')
.auth('AUTH_ID') // Check the code example below on how to generate access tokens
.get('/me/drives')
.then(({ data }) => console.log(data))
.catch(e => console.log(e))
HTML/JSReact
<script src="https://cdn.jsdelivr.net/npm/@bearer/js/lib/bearer.production.min.js"></script>
<button class="btn btn-primary" onclick="myConnectButton()">
Connect to Microsoft OneDrive
</button>
<script>
const bearerClient = bearer('YOUR_BEARER_PUB_KEY')
function myConnectButton() {
bearerClient
.connect(
'microsoft_onedrive'
)
.then(({ authId }) => {
// Use this authId like bearer.auth(authId).get(..
console.log('AUTH_ID for this user', authId)
})
}
</script>

Start using the Microsoft OneDrive API

Bearer provides a universal API client to call any Microsoft OneDrive endpoints. It takes care of API authentication, credentials management, and monitoring out-of-the-box.

Available in Node.js, Ruby, Python, and PHP

Sign up with Email

Start integrating the Microsoft OneDrive API for free!

Universal API client

Query the Microsoft OneDrive API and hundreds more APIs using a single API client.

Identity Management

From API credentials to OAuth dance, token and refresh token, Bearer manages it all.

Real-time Monitoring

Get a complete overview of your API usage with metrics and in-depth logs, find errors anddebug in a snap.

Bearer - Integrations built in minutes, Monitored in real-time

Company

Docs & Help

Legal

Bearer is on TwitterBearer is on GitHubBearer is on FacebookBearer is on LinkedIn
© Copyright Bearer 2019
Bearer uses cookies to make its website easier to use. Learn more about cookies.