Apps Script services

Add-ons built using Apps Script can use the many built-in G Suite services it provides to access G Suite application data. You can also use Apps Script advanced services to directly access the correspoding REST API from your add-on script project. Apps Script also provides built-in script services to assist with common tasks that aren't connected to a particular G Suite application (such as logging or data compression).

The following table lists services that are often particularly useful when building add-ons.

G Suite services
Calendar service Access and modify user Google Calendar data.
Document service Create, access, and edit Google Docs.
Drive service Create, access, and modify files in Google Drive.
Forms service Create, access, and edit Google Forms.
Gmail service Access user Gmail data and messages.
Slides service Create, access, and edit Google Slides presentations.
Sheets service Create, access, and edit Google Sheets.
Advanced Google services
Advanced Calendar service Use the Calendar v3 REST API from your add-on script project.
Advanced Drive service Use the Drive v2 REST API from your add-on script project.
Advanced Gmail service Use the Gmail v1 REST API from your add-on script project.
Advanced Sheets service Use the Sheets v4 REST API from your add-on script project.
Advanced Slides service Use the Slides v1 REST API from your add-on script project.
Script services
console Log information to Stackdriver. This is usually preferable to using the simpler Logger service.
HTML service Create and serve HTML. This service is used to build user interfaces for editor add-on sidebars and dialogs. For more information, see the Apps Script guide to HTML service.
Properties service Store and retrieve add-on state and other information using property strings.
Script service Access script triggers and other script-level information.
URL Fetch service Retrieve and post information from or to third-party URLs. Often it is helpful to use the OAuth2 library for Apps Script in conjunction with this service to handle the details of OAuth2 authorization for third-party APIs.
Utilities service Helper methods to handle data compression, encoding, decoding, JSON manipulation, and other miscellaneous tasks.