Can someone tell me why I might be getting an “undefined” promise (the promise state is fulfilled) when I execute the example code from the API documentation? I am assuming it has to do with user rights. I am an admin but it seems like there may be separate controls for what my code can do. Running this script from a server while logged on, in a seperate tab, to MDC.
<HTML>
<head>
<script src="https://cdn.jsdelivr.net/npm/monday-sdk-js/dist/main.js"></script>
<script>
const monday = window.mondaySdk()
monday.api(`{ users { id, name } }`).then(res => {
alert(res);
});
</script>
</head>
<body>
</body>
</HTML>