The document discusses Google APIs and why developers should use them. It provides an overview of what APIs are and describes some key Google APIs like Google Maps, Google Docs, Google Spreadsheets, and more. It also explains standards like SOAP, WSDL, and ReST that Google uses to interface its APIs and provides code examples of using the Google Maps API.
1. Google APIs
Why Aren’t You Using Them?
Devesh Batra
Blogger, Witty Geeks
Unofficial Evangelist, Google Technologies
devesh@wittygeeks.com
2.
3.
4. An application programming interface (API) is a protocol intended
to be used as an interface by software components to communicate
with each other. An API is a library that may include specifications
for routines, data structures, object classes, and variables.
5. An application programming interface (API) is specification
intended to be used as an interface by software components to
communicate with each other.
6.
7. • The Google APIs service is a web program that enables
developers to easily find and manipulate information on the
web.
• Google APIs are for developers and researchers interested in
using Google products and services as a resource in their
applications.
• Google uses the SOAP and WSDL standards to act as an interface
between the user’s program and Google API.
• Programming environments such as Java, Perl, Visual Studio .NET
are compatible with Google API.
8.
9. Site Maps
Checkout
Account Authentication
Earth
Blogger
Calendar
Picasa Maps AdSense
Search History
Spreadsheets
AdWords Groups
Gadgets YouTube
Talk
Search
And many more..
10.
11. WSDL
(Web Services Description Language)
• The standard format for describing a web service.
• Expressed in XML, a WSDL definition describes how to access
a web service and what operations it will perform.
• This is the most important file (only) to use the API with Perl.
12. SOAP
(Simple Object Access Protocol)
• is a communication protocol.
• is for communication between applications.
• is a format for sending messages.
• is designed to communicate via Internet.
• is platform independent.
• is language independent.
• is based on XML.
13. ReST
(Representational State Transfer)
• light weight.
• suitable for Web APIs.
• Ease of development and deployment.
• Serves the actual purpose of HTTP.
• Cache Proxies.
• Human Readable Results.
• Better Perfomance, Better Support.
• Social Media Authentication.
24. var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(40.146212, -82.994824), 13);
25. var map = new GMap2(document.getElementById("map"));
var point = new GLatLng(40.146212, -82.994824);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GOverviewMapControl());
map.setCenter(point, 13);
26. .
var map = new GMap2(document.getElementById("map"));
var point = new GLatLng(40.146212, -82.994824);
GEvent.addListener(map, "moveend",
function() {
var center = map.getCenter();
alert("MAP CENTER: n" + center.toString());});
GEvent.addListener(map, "mouseout“,
function() {
alert(“You’re done dragging?");});
map.setCenter(point, 13);
27. var address = "8850 S. Old St. Rd., Columbus, OH 43240";
var map = new GMap2(document.getElementById("map"));
var geocoder = new GClientGeocoder();
geocoder.getLatLng(address,
function(point){
if (point){map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);}});
28.
29.
30.
31. • workforce management tool that improves the efficiency of mobile teams.
• All team members can be seen on a Google Map, making it easy to assign
jobs to the nearest available team member.
• By getting real-time visibility into where teams are and what jobs they are
doing, work can be scheduled in a smarter, more efficient way.
• Administrators can dispatch jobs with the confidence that an individual's
location is correct, even if they are indoors since Google Maps Coordinate
integrates with Google Indoor Maps.
32.
33. • Google Documents List Data API allows developers to build applications
that can upload documents to Google Docs, request a list of a user’s
documents, or search content within a document.
• Google Spreadsheets API performs similar functions, allowing external
applications to access and edit data within the company’s spreadsheet
program.
• A good example of these relatively new APIs in action is Swivel, where
data can be pulled in from Google Spreadsheets and then utilize Swivel’s
community tools for analyzing and discussing data.
34.
35. • workforce management tool that improves the efficiency of mobile teams.
• All team members can be seen on a Google Map, making it easy to assign
jobs to the nearest available team member.
• By getting real-time visibility into where teams are and what jobs they are
doing, work can be scheduled in a smarter, more efficient way.
• Administrators can dispatch jobs with the confidence that an individual's
location is correct, even if they are indoors since Google Maps Coordinate
integrates with Google Indoor Maps.