Upload
anjana-somathilake
View
121
Download
3
Embed Size (px)
DESCRIPTION
Introduction to Google APIs
Citation preview
APIs Anjana Somathilake
Director, Engineering and Architecture @makewita
Coverage!
What is Google?!
Opticians ?!
Car Manufacturer?!
Phone Company?!
What is Google?!
Technologies and Tools!
Google Cloud Platform!
API?!
• American Petroleum Institute!• Academic Performance Index!• Application Programming Interface!
• A Pleasing Interface!• American Pain Institute!
Google APIs!
“The Google APIs are based on popular Google consumer products, including Google Maps, Google Earth, AdSense, Adwords, Google Apps and YouTube.”!
API?!
UI vs. API
User Interface!
API!
Application Programming Interfaces
API – Integrates programmatically!
Request
Response
API – Integrates programmatically!
API
Application
Why Google APIs!
• Run on Google’s infrastructure • Global network: Google has one of the largest and most advanced computer networks. • Redundancy: Multiple locations across the globe provides strong redundancy. • Cutting-edge Technology: Access to Google’s technology innovations faster. (e.g Spanner
and Flume)
• Focus on your product • Managed services: Let Google worry about infrastructure while you focus on your code • Developer tools and SDKs: Google provides API client libraries, etc • Console and administration: See and manage all of your applications from a single console
• Mix and match • Use Google APIs to quickly enable a wide range of functionality for your application. You
don’t need to build these from scratch, just take advantage of easy integration
RESTful in a nutshell!
The REST architecture is based on the following simple ideas
• REST uses URIs to refer to and to access resources • REST is built on top of the stateless HTTP 1.1 protocol • REST uses HTTP commands to define operations HTTP commands have precise semantics
• GET lists or retrieves a resource at a given URI • PUT replaces or updates a resource at a given URI • POST creates a resources at a given URI • DELETE removes the resources at a given URI
Authorized Access to APIs with OAuth!
https://developers.google.com/oauthplayground
Google APIs Explorer?!
“The Google APIs Explorer is a tool that helps you explore various Google APIs interactively”
• Credentials to access an API are not needed to use the APIs Explorer • The APIs Explorer uses its own API key whenever it makes a request
http://developers.google.com/apis-explorer
Accessing APIs!
• APIs Discovery Service - One API to find hem all https://developers.google.com/apis-explorer/?hl=de#p/discovery/v1/discovery.apis.list
• Books API - Search Books https://developers.google.com/apis-explorer/#p/books/v1/books.volumes.list
• Plus API - Search for Public Profiles of People https://developers.google.com/apis-explorer/#p/plus/v1/plus.people.search
Google Developers Console! “Developer portal for managing and viewing traffic data, authentication, and billing information for the Google APIs that your projects use”
https://console.developers.google.com
Accessing APIs!
• URL Shortener API - Squeeze long URLs into fewer characters
• Calendar API - Manage Events on a Calendar
• Tasks API - Manage TODO lists
• Translate API - Dynamically translate text
Demo - Fusion Tables API!
“Google Fusion Tables is an experimental application that lets you store,
share, query, and visualize data tables”
https://developers.google.com/fusiontables/docs/samples/gviz_barchart
https://developers.google.com/fusiontables/docs/samples/fusiontableslayer_example
Thank You!