How to get the image URL using MiroAPI or SDK

  • 14 January 2024
  • 0 replies
  • 46 views

 

I'm currently trying to get images on the Miro board using MiroAPI or SDK. However, when you run the code below, nothing is displayed in the URL field. What should I do? What I want to do is get the image on the Miro board and paste it into my web application via the server, and one way to do that is to use a URL. I would like to know if there is another method.

const allWidgets = await miro.board.get();

    const imageWidgets = allWidgets.filter(widget => widget.type === 'image');

    const imageData = imageWidgets.map(image => {

        return {

            id: image.id,

            url: image.url, 

            title: image.title,

            position: image.bounds 

        };

    });

  console.log(imageData);

 


0 replies

No replies yet...

Reply