Introduction to Google Cloud Endpoints: Speed Up Your API Development
Introduction to google api
-
Upload
lakhdar-meftah -
Category
Education
-
view
421 -
download
3
description
Transcript of Introduction to google api
![Page 1: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/1.jpg)
Introduction to Google APIGoogle Developper Group
AlgeriaBy MEFTAH Lakhdar
A GDG member
![Page 2: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/2.jpg)
![Page 3: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/3.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/4.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/5.jpg)
![Page 6: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/6.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/7.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/8.jpg)
![Page 9: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/9.jpg)
AnalyticsTotal Clicks
Refferrers
Browsers
Conteries
Platforms
![Page 10: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/10.jpg)
![Page 11: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/11.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/12.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/13.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/14.jpg)
So we enter the google APIs
console:code.google.com
/apis/console
![Page 15: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/15.jpg)
Create an Oauth 2.0 client ID…
And Thats It
![Page 16: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/16.jpg)
Showcase
![Page 17: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/17.jpg)
Go farther…
You can see:
https://developers.google.com/explorer-help/
And:
https://code.google.com/
Also:
https://developers.google.com/
![Page 18: Introduction to google api](https://reader033.fdocuments.us/reader033/viewer/2022061206/54832f8eb4af9f767b8b4644/html5/thumbnails/18.jpg)