最近搜索
没有最近搜索

Parth Patel
已加入2025年3月19日
·
最后活动2025年3月25日
关注
0
关注者
0
活动总数
3
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Parth Patel
Parth Patel 进行了评论,
I was able to authenticate upon initial load/install of the app but I don't have any way to see logs when it goes for refresh token.
This worked successfully 5 hours ago. and when i came back to it I am getting this error. so I am assuming the refresh token failed, the expires_in key is in the response from the token endpoint.
Please see link below
https://app.ninjarmm.com/apidocs-beta/authorization/flows/authorization-code-flow
ZAF client Support App Function:
async function getDevices() {
if (!token) {
console.log("Failed to obtain access token");
return;
}
try {
return await client.request({
url: "https://app.ninjarmm.com/api/v2/devices-detailed",
type: "GET",
headers: { Authorization: "Bearer {{setting.token}}" },
secure: true,
});
} catch (error) {
console.error("Error fetching devices:", error);
}
}
Manifest portion regarding oauth:
"parameters": [
{
"name": "token",
"type": "oauth"
}
],
"oauth": {
"response_type": "code",
"client_id": "************************",
"client_secret": "**********************************",
"authorize_uri": "https://app.ninjarmm.com/ws/oauth/authorize",
"scope": "control monitoring management",
"access_token_uri": "https://app.ninjarmm.com/ws/oauth/token"
},
查看评论 · 已于 2025年3月25日 编辑 · Parth Patel
0
关注者
0
投票
0
评论