SlideShare a Scribd company logo
GDG DevFestDC
May 2017: Tysons, VA
BayPIGgies
Aug 2016: Mountain View, CA
Exploring G Suite & Google APIs
in Python & Javascript (coding workshop)
+Wesley Chun, @wescpy
Developer Advocate
Can't wait? pip{,3} install -U google-api-python-client
AND console.developers.google.com
SF Python project night
Oct 2016: San Francisco, CA
GDG NYC meetup
Nov 2016: New York, NY
Outline
● Overview
● Getting started
● Authorization boilerplate
● Motivational ideas
● Wrap-up
● [hacking + API usage examples]
Google APIs overview
BUT
... wait, there’s more...
Getting Started with Google APIs
Developers Console (devconsole)
G Suite & Google APIs coding workshop
G Suite & Google APIs coding workshop
G Suite & Google APIs coding workshop
OAuth2 scenarios
● Varies on application type (where apps located)
○ Web (server) applications
○ Installed (mobile & desktop computers) apps
○ Service accounts (cloud/server-to-server)
○ Client-side (JavaScript) apps
○ Limited-input devices (game consoles, printers, cameras, etc.)
○ developers.google.com/identity/protocols/OAuth2
○ TODAY: command-line script == "Installed"
G Suite & Google APIs coding workshop
Authorization boilerplate
developers.google.com/discovery/libraries
Open source client
libraries for many
languages, not just
SIMPLE
AUTHORIZED
Which do you choose?
Simple API access
Authorized API access
Motivational ideas
Write your own or see
github.com/googledrive/zipextractor (JS)
Build a Node.js customized reporting tool with our
Sheets API codelab at g.co/codelabs/sheets (JS)
Check out our Node.js Markdown-to-Google Slides
sample app demoing the Slides API
github.com/googlesamples/md2googleslides (JS)
Wrap-up
Alternative
● Google Apps Script
○ What is it?
■ Executes as JavaScript in Google's cloud
■ Think “built-in” services vs. traditional API usage
■ Convenient access to G Suite/Google Apps data
■ Can also access other Google+external services
■ developers.google.com/apps-script
○ Video resources
■ developers.google.com/apps-script/guides/videos
(intro/Sheets, Maps & Gmail, YouTube [Data], Forms)
Summary
● We’ve created great tech but can’t build everything(!)
● APIs: our tech available for your apps; free?!?
● Access w/favorite dev tool via Google APIs Client Library
○ Python, JavaScript (client + Node.js), Java, C#/.NET, Go,
Dart, Ruby, PHP
○ Also mobile: Android (Java), iOS (Swift, Objective-C)
● Build the next great thing!
Reference
● Blog + video Resources
○ SETUP & BOILERPLATE
■ goo.gl/RbyTFD (new Google APIs project setup)
■ goo.gl/KMfbeK (common Python boilerplate code review)
○ G SUITE APIs
■ goo.gl/ZIgf8k and goo.gl/EySSQV (Google Drive API)
■ goo.gl/pFYUQ2 (Gmail API)
■ goo.gl/KuYMiq (Google Calendar API)
■ goo.gl/N1RPwC and goo.gl/U6Oljn (Google Sheets API)
■ developers.google.com/slides/videos (Google Slides APIs)
Thank you! Questions?
+Wesley Chun
google.com/+WesleyChun
@wescpy
twitter.com/wescpy
slide deck
goo.gl/NjCC0H

More Related Content

What's hot (19)

PPTX
Grunt
bigsilverbob
 
PPT
GAS Session
BVCOE
 
PDF
App script
Choong Ping Teo
 
PPTX
Jump into React-Native (Class 2/6)
Waqqas Jabbar
 
PDF
Flutter Workshop 2021 @ ARU
Anuchit Chalothorn
 
PDF
Flutter workshop @ bang saen 2020
Anuchit Chalothorn
 
PDF
Drupal contributor HOWTO
Andriy Yun
 
PPTX
Jump into React Native (Class 3)
Waqqas Jabbar
 
PDF
Git - Workshop Disruptiva
Bruno Almeida
 
PPT
Gwt training presentation
MUFIX Community
 
PDF
Android build process (1)
Shubham Goyal
 
PDF
QGIS UK: Developing with QGIS - What is possible (Lutra Consulting)
Ross McDonald
 
PDF
2nd Athens Android Dev Meetup: Hello Android, from zero to hello
Mando Stam
 
PDF
A week in the Life of Kubernetes
Dawn Foster
 
PDF
DevOps Taiwan meetup #19
Len Chang
 
PDF
Going Enterprise QGIS and PostGIS
QGIS UK
 
PPT
sbt: the incredible machine
Vasil Remeniuk
 
PDF
Google App Engine Developer - Day1
Simon Su
 
PDF
How to approach building GUIs using PyQT
Jerlyn Manohar
 
GAS Session
BVCOE
 
App script
Choong Ping Teo
 
Jump into React-Native (Class 2/6)
Waqqas Jabbar
 
Flutter Workshop 2021 @ ARU
Anuchit Chalothorn
 
Flutter workshop @ bang saen 2020
Anuchit Chalothorn
 
Drupal contributor HOWTO
Andriy Yun
 
Jump into React Native (Class 3)
Waqqas Jabbar
 
Git - Workshop Disruptiva
Bruno Almeida
 
Gwt training presentation
MUFIX Community
 
Android build process (1)
Shubham Goyal
 
QGIS UK: Developing with QGIS - What is possible (Lutra Consulting)
Ross McDonald
 
2nd Athens Android Dev Meetup: Hello Android, from zero to hello
Mando Stam
 
A week in the Life of Kubernetes
Dawn Foster
 
DevOps Taiwan meetup #19
Len Chang
 
Going Enterprise QGIS and PostGIS
QGIS UK
 
sbt: the incredible machine
Vasil Remeniuk
 
Google App Engine Developer - Day1
Simon Su
 
How to approach building GUIs using PyQT
Jerlyn Manohar
 

Similar to G Suite & Google APIs coding workshop (20)

PDF
Introduction to serverless computing on Google Cloud
wesley chun
 
PDF
Exploring Google (Cloud) APIs with Python & JavaScript
wesley chun
 
PDF
Google's serverless journey: past to present
wesley chun
 
PDF
Powerful Google Cloud tools for your hack
wesley chun
 
PDF
Using Google (Cloud) APIs
wesley chun
 
PDF
Google... more than just a cloud
wesley chun
 
PDF
Exploring Google (Cloud) APIs & Cloud Computing overview
wesley chun
 
PDF
Exploring Google APIs with Python
wesley chun
 
PDF
Build with ALL of Google Cloud
wesley chun
 
PDF
Google Apps Script: Accessing G Suite & other Google services with JavaScript
wesley chun
 
PDF
Accessing Google Cloud APIs
wesley chun
 
PDF
Cloud computing overview & Technical intro to Google Cloud
wesley chun
 
PDF
From zero to Google APIs: Beyond search & AI... leverage all of Google
wesley chun
 
PDF
Powerful Google developer tools for immediate impact! (2023-24 A)
wesley chun
 
PDF
Run your code serverlessly on Google's open cloud
wesley chun
 
PDF
How Google Cloud Platform can help in the classroom/lab
wesley chun
 
PDF
Google Cloud Platform Update
Ido Green
 
PDF
Image archive, analysis & report generation with Google Cloud
wesley chun
 
PDF
Exploring Google APIs with Python
wesley chun
 
PDF
Serverless Computing with Python
wesley chun
 
Introduction to serverless computing on Google Cloud
wesley chun
 
Exploring Google (Cloud) APIs with Python & JavaScript
wesley chun
 
Google's serverless journey: past to present
wesley chun
 
Powerful Google Cloud tools for your hack
wesley chun
 
Using Google (Cloud) APIs
wesley chun
 
Google... more than just a cloud
wesley chun
 
Exploring Google (Cloud) APIs & Cloud Computing overview
wesley chun
 
Exploring Google APIs with Python
wesley chun
 
Build with ALL of Google Cloud
wesley chun
 
Google Apps Script: Accessing G Suite & other Google services with JavaScript
wesley chun
 
Accessing Google Cloud APIs
wesley chun
 
Cloud computing overview & Technical intro to Google Cloud
wesley chun
 
From zero to Google APIs: Beyond search & AI... leverage all of Google
wesley chun
 
Powerful Google developer tools for immediate impact! (2023-24 A)
wesley chun
 
Run your code serverlessly on Google's open cloud
wesley chun
 
How Google Cloud Platform can help in the classroom/lab
wesley chun
 
Google Cloud Platform Update
Ido Green
 
Image archive, analysis & report generation with Google Cloud
wesley chun
 
Exploring Google APIs with Python
wesley chun
 
Serverless Computing with Python
wesley chun
 
Ad

More from wesley chun (19)

PDF
Deploy Basic AI web apps with Serverless Computing from Google Cloud
wesley chun
 
PDF
Build an AI/ML-driven image archive processing workflow: Image archive, analy...
wesley chun
 
PDF
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
 
PDF
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
 
PDF
Easy path to machine learning (2023-2024)
wesley chun
 
PDF
Powerful Google developer tools for immediate impact! (2023-24 B)
wesley chun
 
PDF
Build an AI/ML-driven image archive processing workflow: Image archive, analy...
wesley chun
 
PDF
Exploring Google APIs 102: Cloud vs. non-GCP Google APIs
wesley chun
 
PDF
Serverless Computing with Python
wesley chun
 
PDF
Easy path to machine learning (2022)
wesley chun
 
PDF
Serverless computing with Google Cloud
wesley chun
 
PDF
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
wesley chun
 
PDF
Easy path to machine learning (Spring 2021)
wesley chun
 
PDF
Serverless Computing with Google Cloud
wesley chun
 
PDF
Introduction to Cloud Computing with Google Cloud
wesley chun
 
PDF
Easy path to machine learning (Spring 2020)
wesley chun
 
PDF
Exploring Google (Cloud) APIs with Python & JavaScript
wesley chun
 
PDF
Google Cloud @ Hackathons (2020)
wesley chun
 
PDF
Powerful Google Cloud tools for your hack (2020)
wesley chun
 
Deploy Basic AI web apps with Serverless Computing from Google Cloud
wesley chun
 
Build an AI/ML-driven image archive processing workflow: Image archive, analy...
wesley chun
 
Powerful Google developer tools for immediate impact! (2023-24 C)
wesley chun
 
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
 
Easy path to machine learning (2023-2024)
wesley chun
 
Powerful Google developer tools for immediate impact! (2023-24 B)
wesley chun
 
Build an AI/ML-driven image archive processing workflow: Image archive, analy...
wesley chun
 
Exploring Google APIs 102: Cloud vs. non-GCP Google APIs
wesley chun
 
Serverless Computing with Python
wesley chun
 
Easy path to machine learning (2022)
wesley chun
 
Serverless computing with Google Cloud
wesley chun
 
Designing flexible apps deployable to App Engine, Cloud Functions, or Cloud Run
wesley chun
 
Easy path to machine learning (Spring 2021)
wesley chun
 
Serverless Computing with Google Cloud
wesley chun
 
Introduction to Cloud Computing with Google Cloud
wesley chun
 
Easy path to machine learning (Spring 2020)
wesley chun
 
Exploring Google (Cloud) APIs with Python & JavaScript
wesley chun
 
Google Cloud @ Hackathons (2020)
wesley chun
 
Powerful Google Cloud tools for your hack (2020)
wesley chun
 
Ad

Recently uploaded (20)

PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Digital Circuits, important subject in CS
contactparinay1
 

G Suite & Google APIs coding workshop

  • 1. GDG DevFestDC May 2017: Tysons, VA BayPIGgies Aug 2016: Mountain View, CA Exploring G Suite & Google APIs in Python & Javascript (coding workshop) +Wesley Chun, @wescpy Developer Advocate Can't wait? pip{,3} install -U google-api-python-client AND console.developers.google.com SF Python project night Oct 2016: San Francisco, CA GDG NYC meetup Nov 2016: New York, NY Outline ● Overview ● Getting started ● Authorization boilerplate ● Motivational ideas ● Wrap-up ● [hacking + API usage examples]
  • 4. Getting Started with Google APIs
  • 9. OAuth2 scenarios ● Varies on application type (where apps located) ○ Web (server) applications ○ Installed (mobile & desktop computers) apps ○ Service accounts (cloud/server-to-server) ○ Client-side (JavaScript) apps ○ Limited-input devices (game consoles, printers, cameras, etc.) ○ developers.google.com/identity/protocols/OAuth2 ○ TODAY: command-line script == "Installed"
  • 12. developers.google.com/discovery/libraries Open source client libraries for many languages, not just SIMPLE AUTHORIZED Which do you choose?
  • 14. Motivational ideas Write your own or see github.com/googledrive/zipextractor (JS)
  • 15. Build a Node.js customized reporting tool with our Sheets API codelab at g.co/codelabs/sheets (JS) Check out our Node.js Markdown-to-Google Slides sample app demoing the Slides API github.com/googlesamples/md2googleslides (JS)
  • 17. Alternative ● Google Apps Script ○ What is it? ■ Executes as JavaScript in Google's cloud ■ Think “built-in” services vs. traditional API usage ■ Convenient access to G Suite/Google Apps data ■ Can also access other Google+external services ■ developers.google.com/apps-script ○ Video resources ■ developers.google.com/apps-script/guides/videos (intro/Sheets, Maps & Gmail, YouTube [Data], Forms) Summary ● We’ve created great tech but can’t build everything(!) ● APIs: our tech available for your apps; free?!? ● Access w/favorite dev tool via Google APIs Client Library ○ Python, JavaScript (client + Node.js), Java, C#/.NET, Go, Dart, Ruby, PHP ○ Also mobile: Android (Java), iOS (Swift, Objective-C) ● Build the next great thing!
  • 18. Reference ● Blog + video Resources ○ SETUP & BOILERPLATE ■ goo.gl/RbyTFD (new Google APIs project setup) ■ goo.gl/KMfbeK (common Python boilerplate code review) ○ G SUITE APIs ■ goo.gl/ZIgf8k and goo.gl/EySSQV (Google Drive API) ■ goo.gl/pFYUQ2 (Gmail API) ■ goo.gl/KuYMiq (Google Calendar API) ■ goo.gl/N1RPwC and goo.gl/U6Oljn (Google Sheets API) ■ developers.google.com/slides/videos (Google Slides APIs) Thank you! Questions? +Wesley Chun google.com/+WesleyChun @wescpy twitter.com/wescpy slide deck goo.gl/NjCC0H