表示由插件创建的附件。此对象可在不同 Google 可扩展性产品的上下文中用于生成新附件,例如日历活动。
const attachment = AddOnsResponseService.newAttachment() .setResourceUrl('https://fakeresourceurl.com') .setTitle('Attachment title') .setMimeType('text/html') .setIconUrl('https://fakeresourceurl.com/iconurl.png');
方法
| 方法 | 返回值类型 | 简介 |
|---|---|---|
set | Attachment | 为附件设置图标网址。 |
set | Attachment | 为附件设置 MIME 类型。 |
set | Attachment | 为附件设置资源网址。 |
set | Attachment | 为附件设置标题。 |