Jovo showImageCard


#1

Hi I am using

this.showImageCard(‘Card Title’, ’ Card Content’, {
smallImageUrl: ‘https://via.placeholder.com/720x480’,
largeImageUrl: ‘https://via.placeholder.com/1200x800’,
})
.tell(‘Hello World!’);

and below is the response jovo is sending which cause the error.
smallImageUrl is getting nested,please let me know if i am making some mistake

“card”: {
“type”: “Standard”,
“image”: {
“smallImageUrl”: {
“smallImageUrl”: “”,
“largeImageUrl”: “”
},
“largeImageUrl”: {
“smallImageUrl”: “”,
“largeImageUrl”: “”
}
},
“title”: “Card Title”,
“text”: " Card Content"
}


#2

Welcome @rkj706! If I remember correctly, I think you need only add the URLS for this method as so:

this.showImageCard(
  ‘Card Title’, 
  'Card Content’, 
    {
      ‘https://via.placeholder.com/720x480’,  
      ‘https://via.placeholder.com/1200x800’
    }
).tell(‘Hello World!’); 

#3

Hi,
sorry i removed the url because as a new user i was not able to post with more than two links.

I am using the same code , but the jovo request is preparing like i mentioned above.
smallImageUrl is going inside smallImageUrl object when jovo connvert the code to alexa