Showing posts with label api. Show all posts
Showing posts with label api. Show all posts

Tuesday, 11 October 2011

Using Google+ API's


The Google+ project brings the nuance and richness of real-life sharing to software. The Google+ platform brings that nuance and richness to all of the web. We started with Google’s own products, added the +1 button for site owners and content publishers, and introduced games from a handful of partners. That’s just the beginning though — we want every one of you who builds applications to be able to include rich sharing, identity, and conversations in your app. Today, we’re taking the next step on that journey by launching the first of the Google+ APIs.

Let's Go Public

Google+ gives users full control over their information, supporting everything from intimate conversations with family to public showcases and debates. This initial API release is focused on public data only — it lets you read information that people have shared publicly on Google+. For example, if you want to get my profile information, you can use the people.get method by sending the following HTTP request:

GET https://www.googleapis.com/plus/v1/people/108189587050871927619?key=yourAPIKey
which returns the following JSON encoded output (excerpted for brevity):
{
 "kind": "plus#person",
 "id": "108189587050871927619",
 "displayName": "Chris Chabot",
 "image": {
  "url": "https://lh5.googleusercontent.com/-cQNLOQzkGpE/AAAAAAAAAAI/AAAAAAAAEjo/M9_pXL-ra4Q/photo.jpg"
 },
 "organizations": [
  {
   "name": "Google+ Developer Relations",
   "title": "Developer Advocate & Manager",
   "type": "work"
  }
 ]
}
Similarly, you can get a list of my most recent public posts by using the activities.list method:
GET https://www.googleapis.com/plus/v1/people/108189587050871927619/activities/public?key=yourAPIKey
Because we’re starting with public data only, you simply need to register your app before making requests. And if you aren't yet sure which Google+ user is running your app (for example, because they're installing it for the first time), then you can use the new plus.me OAuth2 scope to ask the user who they are.

After your application has requested this scope, you can use the special “me” identifier rather than the long numeric identifier:
GET https://www.googleapis.com/plus/v1/people/me
On The Shoulders of Giants

We love the way the programmable web has evolved, so we’re using existing standards and best practices wherever we can:
  • Our API methods are RESTful HTTP requests which return JSON responses.
  • Our payload formats use standard syntax (e.g. PoCo for people info, ActivityStrea.ms for activities).
  • We use OAuth 2 for secure trusted access to user data.
In addition, since most of us no longer write raw HTTP requests these days, we provide libraries for your favorite language: Java, GWT, Python, Ruby, PHP, Objective-C, and .NET. These libraries are all open source, so we’d love to have your feedback and help with them.

developers.google.com

You can find more information about the Google+ platform, including today’s new APIs to public data, at developers.google.com/+ on our new Google Developers site. This site will be the place to go for access to documentation, terms and policies, discussions with other developers, tools that make development on the +Platform easier and more fun and, of course, the place where announcements concerning new releases will be made.

Included in our policies are three simple guidelines that we aspire to in our own products, and that we’d like all applications built on the Google+ platform to follow also: put the user first, be transparent, and respect user data. The goal behind these guidelines, as with all of the features and fine print, is to work together to build products that our users will love.

And now …

For all of you developers who have been asking for a Google+ API, this is the start. Experiment with it. Build apps on it. Give us your feedback and ideas. This is just the beginning; the Google+ platform will grow and we value your input as we move Google+ forward.

Follow the conversation on Google+.

Saturday, 1 October 2011

E-Mail for Feedreading

Randy notes that R-Mail has passed 27,000 users and 68,000 subscriptions. Many congrats, Randy! A great service, which (among other, more significant milestones) is clearly impacting the distribution of Freshblog's content. Warning: Stats Ahead.

As you may recall, I was surprised last August to see that 37% of our 929 subscribers accessed Freshblog via R-Mail. Well, the trend continues. 519 of Freshblog's 1180 subscribers, or 44% now use R-Mail. We're 8th on the R-Mail top-blogs list. This is our biggest single subscriber chunk, and we've piled on 172 new R-Mail readers since Aug. More than twice as many readers see Freshblog posts through R-Mail than through Bloglines, & we're 46% R-Mail - 54% All other Readers at this point, which is much heavier on the e-mail end of things than I would, off the top of my head, have thought.
So let's revisit my questions from Aug, & provide an opportunity for some delurking on the part of our e-mail subscribers. We want to hear from you! If you access Freshblog through R-Mail....
  • How many other blogs do you read that way?
  • What prompted your choice to read blogs through e-mail?
  • What e-mail program do you use, & have you crafted filters and such to help to sort the incoming content?
  • Was the prominence of the R-Mail widget here a factor in your decision?
  • Are you "new" to RSS?
  • Do you have a Feedreader account as well as some e-mail subscriptions?
If you use R-Mail to read Freshblog (& we know there's 500+ of you) we want to know what you think! Please delurk forthwith.... Oh, & if you subscribe through a reader, feel free to chip in too!