12
Scripting Google Apps with JavaScript Mirko Kiefer, LivelyCode @mirkokiefer [email protected]

Scripting Google Apps with JavaScript

Embed Size (px)

Citation preview

Page 1: Scripting Google Apps with JavaScript

Scripting Google Apps with JavaScript

Mirko Kiefer, LivelyCode @mirkokiefer

[email protected]

Page 2: Scripting Google Apps with JavaScript

Why script Google Apps?

• Automate your workflows

• Add features to apps

• Do complex calculations in Sheets

• Integrate external data sources

• Expose your data through HTTP interfaces

Page 3: Scripting Google Apps with JavaScript
Page 4: Scripting Google Apps with JavaScript

Google Apps Script• Hosted scripting environment for Google services

• “The Visual Basic for Google Apps”

• Stand-alone scripts

• Container-bound scripts / Add-ons

• It’s just JavaScript!

Page 5: Scripting Google Apps with JavaScript

Stand-alone scripts

• Run manually

• Run through triggers(timer, document open/edit, http requests)

• Stored in Google Drive

• Import/Export code through SDK API

Page 6: Scripting Google Apps with JavaScript

Container-bound scripts

• Tied to Google Doc, Sheet or Form

• Elevated permissions

• Custom functions in Sheets

• No API to import/export scripts!

Page 7: Scripting Google Apps with JavaScript

Add-ons

• Share container-bound scripts

• Published on store or only domain-wide

• In beta (manual review of submissions)

Page 8: Scripting Google Apps with JavaScript

User Interfaces for Add-ons

• Custom dialogs, menus and sidebars

• All HTML and JavaScript

• UI-style guidelines

Page 9: Scripting Google Apps with JavaScript

Storage

• Property service (key-value store)

• JDBC: Google Cloud SQL, MySQL, MSSQL, Oracle

• HTTP access

Page 10: Scripting Google Apps with JavaScript

Authorization

• Multiple authorization levels

• User is asked for permissions

• Scripts can use OAuth in HTTP requests

Page 11: Scripting Google Apps with JavaScript

External APIs

• HTTP APIs for all major services

• Less features than Apps Script SDKs

• Activities API

Page 12: Scripting Google Apps with JavaScript

Mirko Kiefer, LivelyCode @mirkokiefer

[email protected]

Questions?