I have very basic programming skills and I'm struggling to even get started with Miro Web SDK. I'm trying to follow the quickstart guide: https://developers.miro.com/docs/try-out-the-web-sdk and having the following problems:
First, I'm getting a completely different output when I enter "miro.board" into the developer console. According to the documentation, I’m supposed to get:
N {ui:W, viewport: X, getIdToken: f, getAppData: f, setAppData: f}
But instead I’m getting:
{getOnlineUsers: ƒ, __getParamsFromURL: ƒ, __disableLeftClickOnCanvas: ƒ, __enableLeftClickOnCanvas: ƒ, getAllObjects: ƒ, …}
Then, when I enter the example code for creating a shape item:
const shape = await miro.board.createShape({
content: '<p>This is a very yellow star shape.</p>',
shape: 'star',
style: {
fillColor: '#FEFF45',
},
x: 3000,
y: 4500,
width: 280,
height: 280,
});
I get an error message
Uncaught TypeError: miro.board.createShape is not a function at <anonymous>:1:32
What am I missing?