Thursday, December 1, 2011

Tool: JavaScript Client Library for Google APIs Alpha version released

JavaScript Client Library for Google APIs Alpha version released


author photo
Brendan
author photo
Antonio

By Brendan O’Brien and Antonio Fuentes, Google Developer Team
Today we reached another milestone in our efforts to provide infrastructure and tools to make it easier for developers to use Google APIs: we have released the Google APIs Client Library for JavaScript in Alpha. This client library is the latest addition to our suite of client libraries, which already includes Python, PHP, and Java.



This compact and efficient client library provides access to all the Google APIs that are listed in the APIs Explorer. The client library is also flexible, supporting multiple browser environments including Chrome 8+, Firefox 3.5+, Internet Explorer 8+, Safari 4+, and Opera 11+. In addition, the JavaScript client library supports OAuth 2.0 authorization methods.
You can load the client library using the following script tag:


<script src="https://apis.google.com/js/client.js?onload=CALLBACK" ></script>


Loading an API and making a request is as easy as executing:




gapi.client.load('API_NAME', 'API_VERSION', CALLBACK);

// Returns a...

0 comments: