Introduction to Google API
Google Developper Group
Algeria
By MEFTAH Lakhdar
A GDG member
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/
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.
…
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.
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.
 …
Analytics
Total Clicks
Refferrers
Browsers
Conteries
Platforms
 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:
 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.
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
So we enter the
google APIs
console:
code.google.com
/apis/console
Create an Oauth 2.0
client ID…
And Thats It
Showcase
Go farther…
 You can see:
 https://developers.google.com/explorer-help/
 And:
 https://code.google.com/
 Also:
 https://developers.google.com/
Thank You
 MEFTAH Lakhdar.
 Mail: bl_meftah@esi.dz

Introduction to Google API

  • 1.
    Introduction to GoogleAPI Google Developper Group Algeria By MEFTAH Lakhdar A GDG member
  • 3.
    What is theGoogle 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/
  • 4.
    The google APIsExplorer  So now, we can enter to the google APIs Explorer  Which contains:  Services.  A search tool to find: Services. Methods. And recent requests. …
  • 6.
    SO … Whatwe 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.
  • 7.
    Can we takean 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.  …
  • 9.
  • 11.
     We cantest 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:
  • 12.
     We cansee 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.
  • 13.
    The good newsis … 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
  • 14.
    So we enterthe google APIs console: code.google.com /apis/console
  • 15.
    Create an Oauth2.0 client ID… And Thats It
  • 16.
  • 17.
    Go farther…  Youcan see:  https://developers.google.com/explorer-help/  And:  https://code.google.com/  Also:  https://developers.google.com/
  • 19.
    Thank You  MEFTAHLakhdar.  Mail: bl_meftah@esi.dz