onedrive

Can't access one drive through graph API using Azure app

六眼飞鱼酱① 提交于 2020-08-10 20:28:10
问题 I am referring this medium blog and the official document from Microsoft to access one drive through graph API using the Azure app. I am using the following node.js code to get access token for Microsoft Graph API: const axios = require('axios'); const qs = require('qs'); const postData = { client_id: client_id from azure app, scope: 'https://graph.microsoft.com/.default', client_secret: app_secret from azure app grant_type: 'client_credentials' }; axios.defaults.headers.post['Content-Type']