Sites Service

协作平台

此服务提供传统版 Google 协作平台的访问权限。

名称简介
Attachment网站附件,例如附加到页面的文件。
AttachmentType网站附件类型的类型安全枚举。
Column网站列 - 网站列表页中的列。
Comment附加到任何 Google 协作平台页面的评论。
ListItem网站 ListItem - 来自网站列表页面的列表元素。
PageGoogle 网站上的网页。
PageType网站网页类型的类型安全枚举。
Site表示 Google 协作平台的对象。
SitesApp创建和访问 Google 协作平台。

Attachment

方法

方法返回类型简介
getAs(contentType)Blob返回此对象内的数据,并将其作为 blob 转换为指定内容类型。
getBlob()Blob以 blob 的形式返回此对象内的数据。

AttachmentType

Column

Comment

ListItem

Page

PageType

Site

方法

方法返回类型简介
addEditor(emailAddress)Site将指定用户添加到 Site 的编辑者列表中。
addEditor(user)Site将指定用户添加到 Site 的编辑者列表中。
addEditors(emailAddresses)Site将给定的用户数组添加到 Site 的编辑者列表中。
addViewer(emailAddress)Site将指定用户添加到 Site 的查看者列表中。
addViewer(user)Site将指定用户添加到 Site 的查看者列表中。
addViewers(emailAddresses)Site将给定用户数组添加到 Site 的查看者列表中。
getEditors()User[]获取此 Site 的编辑者列表。
getViewers()User[]获取此 Site 的查看者和评论者列表。
removeEditor(emailAddress)SiteSite 的编辑者列表中移除指定用户。
removeEditor(user)SiteSite 的编辑者列表中移除指定用户。
removeViewer(emailAddress)SiteSite 的查看者和评论者列表中移除指定用户。
removeViewer(user)SiteSite 的查看者和评论者列表中移除指定用户。

SitesApp