Sites Service

Sites

This service provides access to classic Google Sites.

Classes

NameBrief description
AttachmentA Sites Attachment such as a file attached to a page.
AttachmentTypeA typesafe enum for sites attachment type.
ColumnA Sites Column - a column from a Sites List page.
CommentA Comment attached to any Sites page.
ListItemA Sites ListItem - a list element from a Sites List page.
PageA Page on a Google Site.
PageTypeA typesafe enum for sites page type.
SiteAn object representing a Google Site.
SitesAppCreate and access Google Sites.

Attachment

Methods

MethodReturn typeBrief description
getAs(contentType)BlobReturn the data inside this object as a blob converted to the specified content type.
getBlob()BlobReturn the data inside this object as a blob.

AttachmentType

Column

Comment

ListItem

Page

PageType

Site

Methods

MethodReturn typeBrief description
addEditor(emailAddress)SiteAdds the given user to the list of editors for the Site.
addEditor(user)SiteAdds the given user to the list of editors for the Site.
addEditors(emailAddresses)SiteAdds the given array of users to the list of editors for the Site.
addViewer(emailAddress)SiteAdds the given user to the list of viewers for the Site.
addViewer(user)SiteAdds the given user to the list of viewers for the Site.
addViewers(emailAddresses)SiteAdds the given array of users to the list of viewers for the Site.
getEditors()User[]Gets the list of editors for this Site.
getViewers()User[]Gets the list of viewers and commenters for this Site.
removeEditor(emailAddress)SiteRemoves the given user from the list of editors for the Site.
removeEditor(user)SiteRemoves the given user from the list of editors for the Site.
removeViewer(emailAddress)SiteRemoves the given user from the list of viewers and commenters for the Site.
removeViewer(user)SiteRemoves the given user from the list of viewers and commenters for the Site.

SitesApp