Saturday, September 17, 2011

Google+ Releases First APIs

David F. Carr
David F. Carr | September 16, 2011

Initial set of application programming interfaces provides access to profiles and activity streams on Google+.

Google+ is unveiling an initial set of application programming interfaces, focused on providing access to public information on the service, with authorized access to private data presumably to follow.

Chris Chabot of Google developer relations made the announcement on Google+ and on the Google Code blog.

This is not everything developers have been waiting for, which would also include a standardized container model for embedding applications inside Google+. Eventually, Google is likely to build a container model that incorporates OpenSocial, a standard that Google originated.

[For expert analysis on what Google+ is missing, see 5 Ways Google Should Expand Google+]

What Google released Thursday does provide a formal, documented API for access to Google+ profiles and posts, which until now has been something developers were only able to accomplish with primitive screen-scraping techniques. Google is incorporating public standards including OAuth 2.0 for authentication, ActivityStreams for news feeds, and PoCo portable contacts for profile data. API calls are use REST, the Representational State Transfer style of Web services in which data is requested using simple HTTP GET and POST operations, and data is returned in JavaScript Object Notation (JSON), meaning it can be easily processed and displayed within JavaScript widgets.

10 Essential Google+ Tips
Slideshow: 10 Essential Google+ Tips
(click image for larger view and for slideshow)

For example, a call to retrieve a user profile would look something like:

GET https://www.googleapis.com/plus/v1/people/108189587050871927619?key=yourAPIKey

Google also released documentation and code libraries on the Google Developers site. Coder starting kits are available for Java, GWT, Python, Ruby, PHP, and .NET. Using one of the code libraries, you would invoke a function that executes the REST call and retrieves the results, rather than interacting with the API at the HTTP protocol level.

Chabot began his Google+ post with a quote from the ancient Chinese philosopher Lao-tzu: "A journey of a thousand miles begins with a single step." This is a small step toward the rich API, or set of APIs, developers expect from Google.

Already, the discussion forums are filling up with questions like, "How do I get a list of the users in one of my circles?" and "How do I fetch content for a user without already knowing that person's ID number?" Neither of those questions has a completely satisfying answer just yet, although an app can go through OAuth to identify the current authenticated user (https://www.googleapis.com/auth/plus.me).

It's a start.

Attend Enterprise 2.0 Santa Clara, Nov. 14-17, 2011, and learn how to drive business value with collaboration, with an emphasis on how real customers are using social software to enable more productive workforces and to be more responsive and engaged with customers and business partners. Register today and save 30% off conference passes, or get a free expo pass with priority code CPHCES02. Find out more and register.

Source: http://www.informationweek.com/thebrainyard/news/social_networking_consumer/231601560/google-releases-first-apis

candice crawford jason david frank chupacabra video

No comments:

Post a Comment