{"id":5891,"date":"2011-09-15T13:20:34","date_gmt":"2011-09-15T21:20:34","guid":{"rendered":"http:\/\/www.perivision.net\/wordpress\/?p=5891"},"modified":"2011-10-14T10:10:04","modified_gmt":"2011-10-14T18:10:04","slug":"google-api-is-open-come-and-code-it","status":"publish","type":"post","link":"https:\/\/www.perivision.net\/wordpress\/2011\/09\/google-api-is-open-come-and-code-it\/","title":{"rendered":"Google+ API is open!  Come and code it!"},"content":{"rendered":"<p><a href=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2011\/07\/google+plus.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-5748\" title=\"google+plus\" src=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2011\/07\/google+plus-150x150.png\" alt=\"\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2011\/07\/google+plus-150x150.png 150w, https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2011\/07\/google+plus-36x36.png 36w, https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2011\/07\/google+plus-115x115.png 115w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>We were waiting and the day has came.\u00a0 Google has opened up the Google+ API. At first glance it seems pretty normal.\u00a0 Typical Restful stuff.<\/p>\n<blockquote><p>We love the way the programmable web has evolved, so we\u2019re using existing standards and best practices wherever we can:<\/p>\n<ul>\n<li>Our API methods are RESTful HTTP requests which return JSON responses.<\/li>\n<li>Our payload formats use standard syntax (e.g.\u00a0<a href=\"http:\/\/portablecontacts.net\/\">PoCo<\/a>\u00a0for people info,\u00a0<a href=\"http:\/\/activitystrea.ms\/\">ActivityStrea.ms<\/a>\u00a0for activities).<\/li>\n<li>We use\u00a0<a href=\"http:\/\/oauth.net\/2\/\">OAuth 2<\/a>\u00a0for secure trusted access to user data.<\/li>\n<\/ul>\n<\/blockquote>\n<p>The only part that could be as issue is the OAuth stuff, but for now, they are only exposing public data, so short of registering your application, you may not need to bother with it. I do expect that like with Twitter, someone will write a library call to handle the OAuth2 stuff.\u00a0 I, for one, would love that.\u00a0 One less hassle to deal with.<\/p>\n<p>If you signed up for the waiting list you would have gotten a email like this..<\/p>\n<blockquote><p>Greetings developers,<\/p>\n<p>Thank you for showing your interest in the Google+ platform on our developer interest form. We promised to let you know when we had more details to share. Well, that time has come&#8230;<\/p>\n<p>Today, we\u2019re launching the first of the Google+ APIs. This initial API release is focused on public data only \u2014 it lets you read information that people have shared publicly on Google+. Read our blog <a href=\"http:\/\/googleplusplatform.blogspot.com\/\" target=\"_blank\">post<\/a> for more details.<\/p>\n<p>Also, we\u2019re happy to introduce a new <a href=\"https:\/\/developers.google.com\/+\/\" target=\"_blank\">Google+ developers site<\/a>. This will be the place to go for our <a href=\"http:\/\/developers.google.com\/+\/policies\" target=\"_blank\">policies<\/a>, <a href=\"http:\/\/developers.google.com\/+\/terms\" target=\"_blank\">terms<\/a>, <a href=\"http:\/\/developers.google.com\/+\/discussions\" target=\"_blank\">discussions<\/a> with other developers, access to <a href=\"http:\/\/developers.google.com\/+\/api\" target=\"_blank\">documentation<\/a>, tools that make development on the Google+ platform easier and more fun, and of course, the place where announcements concerning new releases will be made.<\/p><\/blockquote>\n<p>The most important link here is the the Google+ API blog.\u00a0 Here you can see sample code and get a helds up on the common issues that will popup for the less to godlike programmers out there.\u00a0 On the blog you would see this Google+ API example<\/p>\n<p>For example, if you want to get my profile information, you can use the\u00a0<a href=\"https:\/\/developers.google.com\/+\/api\/latest\/people\/get\">people.get<\/a>\u00a0method by sending the following HTTP request:<\/p>\n<p><code>GET https:\/\/www.googleapis.com\/plus\/v1\/people\/108189587050871927619?key=<a href=\"https:\/\/developers.google.com\/+\/api\/oauth#apikey\">yourAPIKey<\/a><\/code><\/p>\n<p>which returns the following JSON encoded output (excerpted for brevity):<\/p>\n<pre>{\r\n \"kind\": \"plus#person\",\r\n \"id\": \"108189587050871927619\",\r\n \"displayName\": \"Chris Chabot\",\r\n \"image\": {\r\n  \"url\": \"https:\/\/lh5.googleusercontent.com\/-cQNLOQzkGpE\/AAAAAAAAAAI\/AAAAAAAAEjo\/M9_pXL-ra4Q\/photo.jpg\"\r\n },\r\n \"organizations\": [\r\n  {\r\n   \"name\": \"Google+ Developer Relations\",\r\n   \"title\": \"Developer Advocate &amp; Manager\",\r\n   \"type\": \"work\"\r\n  }\r\n ]\r\n}\r\n\r\nPretty normal stuff as far as I can tell.<\/pre>\n<div class=\"SPOSTARBUST-Related-Posts\"><H3>Related Posts<\/H3><ul class=\"entry-meta\"><li class=\"SPOSTARBUST-Related-Post\"><a title=\"Your Twitter app suddenly does not work with OAuth, could be your database\" href=\"https:\/\/www.perivision.net\/wordpress\/2014\/02\/your-twitter-app-suddenly-does-not-work-with-oauth-could-be-your-database\/\" rel=\"bookmark\">Your Twitter app suddenly does not work with OAuth, could be your database<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Google+ API to be privately release. Public should get it in a few months\" href=\"https:\/\/www.perivision.net\/wordpress\/2011\/09\/google-api-to-be-privately-release-public-should-get-it-in-a-few-months\/\" rel=\"bookmark\">Google+ API to be privately release. Public should get it in a few months<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"There is no official Google+ API, but there IS unofficial API\" href=\"https:\/\/www.perivision.net\/wordpress\/2011\/07\/there-is-no-official-google-api-but-there-is-unofficial-api\/\" rel=\"bookmark\">There is no official Google+ API, but there IS unofficial API<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Twitter going to OAuth ONLY in 2 weeks.  You have been warned.\" href=\"https:\/\/www.perivision.net\/wordpress\/2010\/06\/twitter-going-to-oauth-only-in-2-weeks-you-have-been-warned\/\" rel=\"bookmark\">Twitter going to OAuth ONLY in 2 weeks.  You have been warned.<\/a><\/li>\n<li class=\"SPOSTARBUST-Related-Post\"><a title=\"Retweet to become an officially supported function on twitter\" href=\"https:\/\/www.perivision.net\/wordpress\/2009\/08\/retweet-to-become-an-officially-supported-function-on-twitter\/\" rel=\"bookmark\">Retweet to become an officially supported function on twitter<\/a><\/li>\n<\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>We were waiting and the day has came.\u00a0 Google has opened up the Google+ API. At first glance it seems pretty normal.\u00a0 Typical Restful stuff. We love the way the programmable web has evolved, so we\u2019re using existing standards and best practices wherever we can: Our API methods are RESTful HTTP requests which return JSON&hellip; <a class=\"read-more\" href=\"https:\/\/www.perivision.net\/wordpress\/2011\/09\/google-api-is-open-come-and-code-it\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":5748,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1346],"tags":[457,1403],"class_list":["post-5891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-2","tag-api","tag-code"],"jetpack_featured_media_url":"https:\/\/www.perivision.net\/wordpress\/wp-content\/uploads\/2011\/07\/google+plus.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pjzQD-1x1","_links":{"self":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts\/5891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/comments?post=5891"}],"version-history":[{"count":5,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts\/5891\/revisions"}],"predecessor-version":[{"id":6010,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/posts\/5891\/revisions\/6010"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/media\/5748"}],"wp:attachment":[{"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/media?parent=5891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/categories?post=5891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.perivision.net\/wordpress\/wp-json\/wp\/v2\/tags?post=5891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}