Introduction to google api

19
Introduction to Google API Google Developper Group Algeria By MEFTAH Lakhdar A GDG member

description

Une conférence animée à l'Ecole Nationale de Commerce, par Mr MEFTAH Lakhdar, un des membres de GDG (Google Developer Group). La conférence est sur le Google API. [English]: This slide was animated by Mr MEFTAH Lakhdar in the ENC. This is an introduction to google API, we give you an introduction, an example of an API, how to get your key and how to build an application, and finally showcases of existent applications

Transcript of Introduction to google api

Page 1: Introduction to google api

Introduction to Google APIGoogle Developper Group

AlgeriaBy MEFTAH Lakhdar

A GDG member

Page 2: Introduction to google api
Page 3: Introduction to google api

What is the Google APIs Explorer?

The Google APIs Explorer is a tool that helps you explore various Google APIs interactively. With the APIs Explorer, you can:

Browse quickly through available APIs and versions.

See methods available for each API and what parameters they support along with inline documentation.

Execute requests for any method and see responses in real time.

Make authenticated and authorized API calls with ease.

Search across all services, methods, and your recent requests to quickly find what you are looking for.

From: https://developers.google.com/explorer-help/

Page 4: Introduction to google api

The google APIs Explorer

So now, we can enter to the google APIs Explorer Which contains:

Services.

A search tool to find: Services.

Methods.

And recent requests.

Page 5: Introduction to google api
Page 6: Introduction to google api

SO … What we can do !

You can take a tour here to manipulate deferent services.

You can for exemple send a mail, blog on Blogger, request the activity list.

The requests are been send in real time, so the modification is apllied.

Page 7: Introduction to google api

Can we take an example ?

Okey, lets try Google URL Sortener API Google URL Shortener:

Is a service that shortener an URL.

Give you the full Analytics of an URL.

Get the list of shortened URL.

Page 8: Introduction to google api
Page 9: Introduction to google api

AnalyticsTotal Clicks

Refferrers

Browsers

Conteries

Platforms

Page 10: Introduction to google api
Page 11: Introduction to google api

We can test one of these classes by entering the request parameters.

For example:

The URL Shortener API contains:

Urlsortener.url.get to get information about a shortened URL.

Urlshortener.url.insert to create a new short URL.

Urlshortener.url.list to retrieve a list of URLs shortener by a user.

For example:

Page 12: Introduction to google api

We can see the code of the request

And the test or the response of the request.

We see the fields of the class insert in the body of the request.

We can also use this result in another class by clicking in the right small arrow.

Page 13: Introduction to google api

The good news is …

Is That you can create your application and lets it works lik that.

So we have to create a new project.

Lets try with the google URL Shortener API

Page 14: Introduction to google api

So we enter the google APIs

console:code.google.com

/apis/console

Page 15: Introduction to google api

Create an Oauth 2.0 client ID…

And Thats It

Page 16: Introduction to google api

Showcase

Page 18: Introduction to google api
Page 19: Introduction to google api

Thank You

MEFTAH Lakhdar.

Mail: [email protected]