问题描述
Microsoft Graph Bookings API,具有委派权限。有人可以帮助我如何获取委派权限的访问令牌,它是NodeJ中的grant_type =“ authorization_code”。 我已经访问了图API以获得应用程序权限,并获得了Grant_type“ client_credentials”的access_token,下面的代码
const getToken = async () => {
const postData = {
client_id:.MS_GRAPH_CLIENT_ID,scope: MS_GRAPH_SCOPE,client_secret: MS_GRAPH_CLIENT_SECRET,grant_type:MS_GRAPH_GRANT_TYPE
};
const response = await client.post(MS_GRAPH_TOKEN_ENDPOINT,querystring.stringify(postData),{
headers: {
"content-type": "application/x-www-form-urlencoded"
}
}
);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)