Hi Node-Redders,
I am wondering if I can access the Microsoft Graph API with a function-node and a http-request node. I followed some guides on how to create an access token on https://portal.azure.com/ and I think I logged in correctly. But the return is payload.error.code = itemNotFound
. Not sure if this is due to privileges. If so do I have to provide scopes somehow ... I am a little bit lost here ...
Is this even possible that way and how would I construct a function-node for a proper call? I hope some of you can point me in the right direction! Thanks in advance!
This is basicly the first attempt I tried to get a simple GET-request for OneDrive going
[...]
msg.url = "https://graph.microsoft.com/v1.0/me/drive/root/children";
msg.method = "GET";
msg.headers = { "Authorization": "Bearer " + msg.accesstoken, "Content-Type": "application/json"};
return msg;