Google Apps Script is a cloud-based scripting language for light-weight application development in the G Suite platform. It provides a way to automate tasks across Google products and third-party services. The main classes in Google Apps Script cover various Google services like Sheets, Docs, Drive, and others, as well as general utility functions. Here’s a list of some of the main classes:
- Spreadsheet Service (SpreadsheetApp): Used for accessing and modifying Google Sheets. Classes include
Spreadsheet
,Sheet
,Range
, etc. - Document Service (DocumentApp): Used for creating and manipulating Google Docs. Classes include
Document
,Body
,Paragraph
, etc. - Drive Service (DriveApp): For interacting with Google Drive. Classes include
File
,Folder
,Drive
, etc. - Calendar Service (CalendarApp): Allows interaction with Google Calendar. Classes include
Calendar
,Event
,EventSeries
, etc. - Mail Service (GmailApp): For sending emails, creating drafts, and managing labels in Gmail. Classes include
GmailMessage
,GmailThread
,GmailLabel
, etc. - User Interface (Ui): For creating user interfaces. This is part of
SpreadsheetApp
,DocumentApp
, and other services. - HTML Service (HtmlService): Used to create and serve HTML content and client-side scripts.
- Utilities Service (Utilities): Provides various utility methods for string manipulation, encoding, date formatting, etc.
- Properties Service (PropertiesService): To store script data. Classes include
ScriptProperties
,UserProperties
,DocumentProperties
, etc. - Data Studio Service (DataStudioApp): For developing Google Data Studio community connectors.
- JDBC Service (Jdbc): For connecting to external SQL databases.
- Language Service (LanguageApp): For language translation and detecting language.
- Maps Service (Maps): For integrating with Google Maps.
- Cache Service (CacheService): Provides a cache for temporarily storing data.
- UrlFetch Service (UrlFetchApp): To make HTTP requests.
- Content Service (ContentService): For creating content like RSS feeds.
- Script Service (ScriptApp): For managing triggers and accessing script/project properties.
- Lock Service (LockService): Provides methods for preventing concurrent access to sections of code.
- Tag Manager Service (TagManagerApp): To access Google Tag Manager accounts and containers.
These classes provide a robust framework for interacting with many of Google’s most popular services and building custom applications or automations within the G Suite ecosystem.