google apis for nsbm students

25
APIs Anjana Somathilake Director, Engineering and Architecture @makewita

Upload: anjana-somathilake

Post on 01-Nov-2014

121 views

Category:

Software


3 download

DESCRIPTION

Introduction to Google APIs

TRANSCRIPT

Page 1: Google APIs for NSBM Students

APIs Anjana Somathilake

Director, Engineering and Architecture @makewita

Page 2: Google APIs for NSBM Students

Coverage!

Page 3: Google APIs for NSBM Students

What is Google?!

Page 4: Google APIs for NSBM Students

Opticians ?!

Page 5: Google APIs for NSBM Students

Car Manufacturer?!

Page 6: Google APIs for NSBM Students

Phone Company?!

Page 7: Google APIs for NSBM Students

What is Google?!

Page 8: Google APIs for NSBM Students

Technologies and Tools!

Page 9: Google APIs for NSBM Students

Google Cloud Platform!

Page 10: Google APIs for NSBM Students

API?!

•  American Petroleum Institute!•  Academic Performance Index!•  Application Programming Interface!

•  A Pleasing Interface!•  American Pain Institute!

Page 11: Google APIs for NSBM Students

Google APIs!

“The Google APIs are based on popular Google consumer products, including Google Maps, Google Earth, AdSense, Adwords, Google Apps and YouTube.”!

Page 12: Google APIs for NSBM Students

API?!

UI vs. API

Page 13: Google APIs for NSBM Students

User Interface!

Page 14: Google APIs for NSBM Students

API!

Application Programming Interfaces

Page 15: Google APIs for NSBM Students

API – Integrates programmatically!

Request

Response

Page 16: Google APIs for NSBM Students

API – Integrates programmatically!

API

Application

Page 17: Google APIs for NSBM Students

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

Page 18: Google APIs for NSBM Students

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

Page 19: Google APIs for NSBM Students

Authorized Access to APIs with OAuth!

https://developers.google.com/oauthplayground

Page 20: Google APIs for NSBM Students

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

Page 21: Google APIs for NSBM Students

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

Page 22: Google APIs for NSBM Students

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

Page 23: Google APIs for NSBM Students

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

Page 24: Google APIs for NSBM Students

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

Page 25: Google APIs for NSBM Students

Thank You!