actions-on-google - Image donot show in rich response in actions on Google
问题描述
Images donot show in basic card in rich response I have provided the url of image but it didn't show an image
@Prisoner here is my code, please let me know if i am doing any mistake
app.intent('totalResponses', (conv, { Location }) => {
// extract the num parameter as a local string variable
if (!conv.surface.capabilities.has('actions.capability.SCREEN_OUTPUT')) {
conv.ask('Sorry, try this on a screen device or select the ' +
'phone surface in the simulator.');
return;
}
conv.ask('Hello World');
conv.ask(new BasicCard({
text: `Hello`, // Note the two spaces before '\n' required for
// a line break to be rendered in the card.
title: 'Title: this is a title',
image: new Image({
url: 'https://drive.google.com/file/d/13eEr2rYhSCEDKDwCLab29AqFMsKuOi4P/view',
alt: 'Image alternate text',
}),
}));
});
解决方案
推荐阅读
- powershell - Atlassian Bamboo - 注入具有“?”的变量 在字符串中,可能的编码问题
- amazon-web-services - 如何在无服务器中引用堆栈输出值?
- java - Android:链接两个视图模型的最佳方式
- php - laravel如何接受PUT请求数据?
- r - 比较 R 中的连续行,显示它们是增加还是减少
- ruby - 如何使干净的 if-else + 返回值
- c# - 对象在成为游戏对象的子对象时变形
- sql - 如何在sql中进行转换和旋转
- python-3.x - 带有标准输入和标准输出的 FizzBuzz python 代码
- python-3.x - 正则表达式 查找存在所需电子邮件的最后一个内容块