Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add missing Google+ API test data files

  • Loading branch information...
commit 66a22c8355f9d5bfa86aefa31fb36d1f9aa7f8e8 1 parent 47b5280
@ginatrapani ginatrapani authored
Showing with 492 additions and 1 deletion.
  1. +137 −0 ...nts/people_113612142759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
  2. +17 −0 ...tests/apidata/people_113612142759476883204-access_token=fauxaccesstoken-fields=displayName,id,image,tagline
  3. +137 −0 ...ata/people_113612142759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
  4. +81 −0 webapp/plugins/googleplus/tests/apidata/people_me-access_token=faux-access-token
  5. +81 −0 ...ugins/googleplus/tests/apidata/people_me-access_token=faux-access-token-fields=displayName,id,image,tagline
  6. +15 −0 webapp/plugins/googleplus/tests/apidata/people_me-access_token=faux-access-token-me-403-error
  7. +15 −0 ...ogleplus/tests/apidata/people_me-access_token=faux-expired-access-token-fields=displayName,id,image,tagline
  8. +1 −0  ...p/plugins/googleplus/tests/apidata/tok-client_id=ci-client_secret=cs-grant_type=authorization_code-code=tc1
  9. +1 −0  ...ret=cs-grant_type=authorization_code-code=tc1-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
  10. +1 −0  ...et=cs-grant_type=authorization_code-code=tc1-redirect_uri=https%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
  11. +1 −0  .../tests/apidata/tok-client_id=ci-client_secret=cs-grant_type=refresh_token-refresh_token=test-refresh_token1
  12. +1 −0  ...s/tests/apidata/tok-client_id=ci-client_secret=cs-grant_type=refresh_token-refresh_token=test_refresh_token
  13. +1 −0  ...c-grant_type=authorization_code-code=tgpc-403-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
  14. +1 −0  ...grant_type=authorization_code-code=tgpc-error-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
  15. +1 −0  ...t=s3c-grant_type=authorization_code-code=tgpc-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
  16. +1 −1  webapp/plugins/googleplus/tests/classes/mock.GooglePlusAPIAccessor.php
View
137 .../people_113612142759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
@@ -0,0 +1,137 @@
+{
+ "kind": "plus#activityFeed",
+ "nextPageToken": "eJxb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGigIFBtaG4kKGOAQTY4SyR0iIGpmhP310JamWvNi2FKmVg362wJeHKzUAL28mnq2ZbFuxbrHvym7_sB6uelwXbS0GaWRkYGHUYUAETAweaCBsDQwMSlwMuzwLmQjkCyFokwFIMjA4wAQcUIxzA9mAHLAgmIw4lQNAAVwZmwA3DpoUDrtIDwlBAdSwSgGtvwG25A4zBhE0Jsrc4GGGGwl2r4AB2jgOSYoQOXEECt7kBiyDYDgUsYkBREaAbmBmYIAEA1cw0gYAtCNDAtACr0xxAAqhuYcQSFg4MMHtZUMQhvAaUOEA1DQYEEAwBqJENGJ5lYUhAtVDAAa4TW4iyYBEjABSwCbLgl0akEwRQZEDxKSMDRl6DAMzkyYGwBYu5DWBjFBlxhSOmBtSgwZEdGhgwHAjhgiKbCVkAOUNCZTgUiHMKFCDSD0S7A4TDwoDkJw6QbQIAfqlI7w",
+ "selfLink": "https://www.googleapis.com/plus/v1/people/113612142759476883204/activities/public?",
+ "nextLink": "https://www.googleapis.com/plus/v1/people/113612142759476883204/activities/public?maxResults=20&pageToken=eJxb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGigIFBtaG4kKGOAQTY4SyR0iIGpmhP310JamWvNi2FKmVg362wJeHKzUAL28mnq2ZbFuxbrHvym7_sB6uelwXbS0GaWRkYGHUYUAETAweaCBsDQwMSlwMuzwLmQjkCyFokwFIMjA4wAQcUIxzA9mAHLAgmIw4lQNAAVwZmwA3DpoUDrtIDwlBAdSwSgGtvwG25A4zBhE0Jsrc4GGGGwl2r4AB2jgOSYoQOXEECt7kBiyDYDgUsYkBREaAbmBmYIAEA1cw0gYAtCNDAtACr0xxAAqhuYcQSFg4MMHtZUMQhvAaUOEA1DQYEEAwBqJENGJ5lYUhAtVDAAa4TW4iyYBEjABSwCbLgl0akEwRQZEDxKSMDRl6DAMzkyYGwBYu5DWBjFBlxhSOmBtSgwZEdGhgwHAjhgiKbCVkAOUNCZTgUiHMKFCDSD0S7A4TDwoDkJw6QbQIAfqlI7w",
+ "title": "Plus Public Activity Feed for Gina Trapani",
+ "updated": "2011-09-17T23:56:40.761Z",
+ "id": "tag:google.com,2010:/plus/people/113612142759476883204/activities/public",
+ "items": [
+ {
+ "kind": "plus#activity",
+ "title": "Reshared post from Jeff Jarvis\n \n\nEnjoyable This Week in Google this week (but then, I enjoy it e...",
+ "published": "2011-09-15T20:45:32.298Z",
+ "updated": "2011-09-15T20:45:32.298Z",
+ "id": "z12pcfdr2wvyzjfff22iiz3pjrnws3lle",
+ "url": "https://plus.google.com/113612142759476883204/posts/JxWujEBH3ow",
+ "actor": {
+ "id": "113612142759476883204",
+ "displayName": "Gina Trapani",
+ "url": "https://plus.google.com/113612142759476883204",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAAAA/90sajvVhfnk/photo.jpg"
+ }
+ },
+ "verb": "share",
+ "object": {
+ "objectType": "activity",
+ "id": "z130s34qcujiwnb0t22tgt3xbtnfhr2e0",
+ "actor": {
+ "id": "105076678694475690385",
+ "displayName": "Jeff Jarvis",
+ "url": "https://plus.google.com/105076678694475690385",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-43wvGLie8Fg/AAAAAAAAAAI/AAAAAAAAAAA/FyaY388KsKY/photo.jpg"
+ }
+ },
+ "content": "Enjoyable This Week in Google this week (but then, I enjoy it every week) with \u003cspan class=\"proflinkWrapper\"\u003e\u003cspan class=\"proflinkPrefix\"\u003e+\u003c/span\u003e\u003ca href=\"https://plus.google.com/101261243957067319422\" class=\"proflink\" oid=\"101261243957067319422\"\u003eLeo Laporte\u003c/a\u003e\u003c/span\u003e and \u003cspan class=\"proflinkWrapper\"\u003e\u003cspan class=\"proflinkPrefix\"\u003e+\u003c/span\u003e\u003ca href=\"https://plus.google.com/113612142759476883204\" class=\"proflink\" oid=\"113612142759476883204\"\u003eGina Trapani\u003c/a\u003e\u003c/span\u003e",
+ "url": "https://plus.google.com/105076678694475690385/posts/5DhS85isf6g",
+ "replies": {
+ "totalItems": 60
+ },
+ "plusoners": {
+ "totalItems": 100
+ },
+ "resharers": {
+ "totalItems": 18
+ },
+ "attachments": [
+ {
+ "objectType": "video",
+ "displayName": "This Week In Google 112: Losers Like Us",
+ "content": "Hosts:Leo Laporte, Jeff Jarvis, and Gina Trapani\nGoogle Flight search takes off, opting out location data collection, Google acquiring Zagat, new name for Google Docs, and more\nDownload or subscribe to this show at twit.tv/twig.\nWe invite you to read, add to, and amend our show notes.\nFriendfeed links for this episode.\nThanks to Cachefly for the bandwidth for this show.\n\n\nRunning time: 1:16:26",
+ "url": "http://www.youtube.com/v/Unx6mg1taQI&hl=en&fs=1&autoplay=1",
+ "image": {
+ "url": "http://images0-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&gadget=a&resize_h=100&url=https%3A%2F%2Fytimg.googleusercontent.com%2Fvi%2FUnx6mg1taQI%2Fhqdefault.jpg",
+ "type": "image/jpeg"
+ }
+ }
+ ]
+ },
+ "annotation": "Really fun episode this week.",
+ "provider": {
+ "title": "Google+"
+ },
+ "access": {
+ "kind": "plus#acl",
+ "items": [
+ {
+ "type": "public"
+ }
+ ]
+ }
+ },
+ {
+ "kind": "plus#activity",
+ "title": "I've got a date with the G+ API this weekend to make a ThinkUp plugin!",
+ "published": "2011-09-15T20:44:20.000Z",
+ "updated": "2011-09-15T20:44:21.727Z",
+ "id": "z12is5v4snurihgdl22iiz3pjrnws3lle",
+ "url": "https://plus.google.com/113612142759476883204/posts/9G8sfZSZqFa",
+ "actor": {
+ "id": "113612142759476883204",
+ "displayName": "Gina Trapani",
+ "url": "https://plus.google.com/113612142759476883204",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAAAA/90sajvVhfnk/photo.jpg"
+ }
+ },
+ "verb": "post",
+ "object": {
+ "objectType": "note",
+ "content": "I've got a date with the G+ API this weekend to make a ThinkUp plugin! Updated: New text here!",
+ "originalContent": "",
+ "url": "https://plus.google.com/113612142759476883204/posts/9G8sfZSZqFa",
+ "replies": {
+ "totalItems": 64
+ },
+ "plusoners": {
+ "totalItems": 199
+ },
+ "resharers": {
+ "totalItems": 69
+ },
+ "attachments": [
+ {
+ "objectType": "article",
+ "displayName": "Getting Started on the Google+ API - Google+ Platform Blog",
+ "content": "Official source of information about the Google+ platform",
+ "url": "http://googleplusplatform.blogspot.com/2011/09/getting-started-on-google-api.html"
+ },
+ {
+ "objectType": "photo",
+ "image": {
+ "url": "http://images0-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&gadget=a&resize_h=100&url=http%3A%2F%2F2.bp.blogspot.com%2F-XV4uMT_Pn7g%2FTnI5T7BCmpI%2FAAAAAAAAAIw%2FCecR4H-s80k%2Fs320%2Fauthorize.png",
+ "type": "image/jpeg"
+ },
+ "fullImage": {
+ "url": "http://2.bp.blogspot.com/-XV4uMT_Pn7g/TnI5T7BCmpI/AAAAAAAAAIw/CecR4H-s80k/s320/authorize.png",
+ "type": "image/jpeg"
+ }
+ }
+ ]
+ },
+ "provider": {
+ "title": "Google+"
+ },
+ "access": {
+ "kind": "plus#acl",
+ "items": [
+ {
+ "type": "public"
+ }
+ ]
+ }
+ }
+ ]
+}
View
17 ...ts/apidata/people_113612142759476883204-access_token=fauxaccesstoken-fields=displayName,id,image,tagline
@@ -0,0 +1,17 @@
+{
+ "id": "1136121427",
+ "displayName": "Gina Trapani",
+ "tagline": "ThinkUp lead developer, This Week in Google co-host, Todo.txt apps creator, founding editor of Lifehacker",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAIAQ/MQyHty0--Tc/photo.jpg"
+ },
+ "placesLived": [
+ {
+ "value": "Brooklyn"
+ },
+ {
+ "value": "San Diego",
+ "primary": true
+ }
+ ]
+}
View
137 .../people_113612142759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
@@ -0,0 +1,137 @@
+{
+ "kind": "plus#activityFeed",
+ "nextPageToken": "eJxb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGigIFBtaG4kKGOAQTY4SyR0iIGpmhP310JamWvNi2FKmVg362wJeHKzUAL28mnq2ZbFuxbrHvym7_sB6uelwXbS0GaWRkYGHUYUAETAweaCBsDQwMSlwMuzwLmQjkCyFokwFIMjA4wAQcUIxzA9mAHLAgmIw4lQNAAVwZmwA3DpoUDrtIDwlBAdSwSgGtvwG25A4zBhE0Jsrc4GGGGwl2r4AB2jgOSYoQOXEECt7kBiyDYDgUsYkBREaAbmBmYIAEA1cw0gYAtCNDAtACr0xxAAqhuYcQSFg4MMHtZUMQhvAaUOEA1DQYEEAwBqJENGJ5lYUhAtVDAAa4TW4iyYBEjABSwCbLgl0akEwRQZEDxKSMDRl6DAMzkyYGwBYu5DWBjFBlxhSOmBtSgwZEdGhgwHAjhgiKbCVkAOUNCZTgUiHMKFCDSD0S7A4TDwoDkJw6QbQIAfqlI7w",
+ "selfLink": "https://www.googleapis.com/plus/v1/people/113612142759476883204/activities/public?",
+ "nextLink": "https://www.googleapis.com/plus/v1/people/113612142759476883204/activities/public?maxResults=20&pageToken=eJxb85aBtbiIQTArsSxRLycxL13PM68kNT21SOjRgiXfG9stmBgYPRlYyxJzSlMrihgEEOr8SnOTUova1kyV5Z7yoJuJgaGigIFBtaG4kKGOAQTY4SyR0iIGpmhP310JamWvNi2FKmVg362wJeHKzUAL28mnq2ZbFuxbrHvym7_sB6uelwXbS0GaWRkYGHUYUAETAweaCBsDQwMSlwMuzwLmQjkCyFokwFIMjA4wAQcUIxzA9mAHLAgmIw4lQNAAVwZmwA3DpoUDrtIDwlBAdSwSgGtvwG25A4zBhE0Jsrc4GGGGwl2r4AB2jgOSYoQOXEECt7kBiyDYDgUsYkBREaAbmBmYIAEA1cw0gYAtCNDAtACr0xxAAqhuYcQSFg4MMHtZUMQhvAaUOEA1DQYEEAwBqJENGJ5lYUhAtVDAAa4TW4iyYBEjABSwCbLgl0akEwRQZEDxKSMDRl6DAMzkyYGwBYu5DWBjFBlxhSOmBtSgwZEdGhgwHAjhgiKbCVkAOUNCZTgUiHMKFCDSD0S7A4TDwoDkJw6QbQIAfqlI7w",
+ "title": "Plus Public Activity Feed for Gina Trapani",
+ "updated": "2011-09-17T23:56:40.761Z",
+ "id": "tag:google.com,2010:/plus/people/113612142759476883204/activities/public",
+ "items": [
+ {
+ "kind": "plus#activity",
+ "title": "Reshared post from Jeff Jarvis\n \n\nEnjoyable This Week in Google this week (but then, I enjoy it e...",
+ "published": "2011-09-15T20:45:32.298Z",
+ "updated": "2011-09-15T20:45:32.298Z",
+ "id": "z12pcfdr2wvyzjfff22iiz3pjrnws3lle",
+ "url": "https://plus.google.com/113612142759476883204/posts/JxWujEBH3ow",
+ "actor": {
+ "id": "113612142759476883204",
+ "displayName": "Gina Trapani",
+ "url": "https://plus.google.com/113612142759476883204",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAAAA/90sajvVhfnk/photo.jpg"
+ }
+ },
+ "verb": "share",
+ "object": {
+ "objectType": "activity",
+ "id": "z130s34qcujiwnb0t22tgt3xbtnfhr2e0",
+ "actor": {
+ "id": "105076678694475690385",
+ "displayName": "Jeff Jarvis",
+ "url": "https://plus.google.com/105076678694475690385",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-43wvGLie8Fg/AAAAAAAAAAI/AAAAAAAAAAA/FyaY388KsKY/photo.jpg"
+ }
+ },
+ "content": "Enjoyable This Week in Google this week (but then, I enjoy it every week) with \u003cspan class=\"proflinkWrapper\"\u003e\u003cspan class=\"proflinkPrefix\"\u003e+\u003c/span\u003e\u003ca href=\"https://plus.google.com/101261243957067319422\" class=\"proflink\" oid=\"101261243957067319422\"\u003eLeo Laporte\u003c/a\u003e\u003c/span\u003e and \u003cspan class=\"proflinkWrapper\"\u003e\u003cspan class=\"proflinkPrefix\"\u003e+\u003c/span\u003e\u003ca href=\"https://plus.google.com/113612142759476883204\" class=\"proflink\" oid=\"113612142759476883204\"\u003eGina Trapani\u003c/a\u003e\u003c/span\u003e",
+ "url": "https://plus.google.com/105076678694475690385/posts/5DhS85isf6g",
+ "replies": {
+ "totalItems": 30
+ },
+ "plusoners": {
+ "totalItems": 50
+ },
+ "resharers": {
+ "totalItems": 9
+ },
+ "attachments": [
+ {
+ "objectType": "video",
+ "displayName": "This Week In Google 112: Losers Like Us",
+ "content": "Hosts:Leo Laporte, Jeff Jarvis, and Gina Trapani\nGoogle Flight search takes off, opting out location data collection, Google acquiring Zagat, new name for Google Docs, and more\nDownload or subscribe to this show at twit.tv/twig.\nWe invite you to read, add to, and amend our show notes.\nFriendfeed links for this episode.\nThanks to Cachefly for the bandwidth for this show.\n\n\nRunning time: 1:16:26",
+ "url": "http://www.youtube.com/v/Unx6mg1taQI&hl=en&fs=1&autoplay=1",
+ "image": {
+ "url": "http://images0-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&gadget=a&resize_h=100&url=https%3A%2F%2Fytimg.googleusercontent.com%2Fvi%2FUnx6mg1taQI%2Fhqdefault.jpg",
+ "type": "image/jpeg"
+ }
+ }
+ ]
+ },
+ "annotation": "Really fun episode this week.",
+ "provider": {
+ "title": "Google+"
+ },
+ "access": {
+ "kind": "plus#acl",
+ "items": [
+ {
+ "type": "public"
+ }
+ ]
+ }
+ },
+ {
+ "kind": "plus#activity",
+ "title": "I've got a date with the G+ API this weekend to make a ThinkUp plugin!",
+ "published": "2011-09-15T20:44:20.000Z",
+ "updated": "2011-09-15T20:44:21.727Z",
+ "id": "z12is5v4snurihgdl22iiz3pjrnws3lle",
+ "url": "https://plus.google.com/113612142759476883204/posts/9G8sfZSZqFa",
+ "actor": {
+ "id": "113612142759476883204",
+ "displayName": "Gina Trapani",
+ "url": "https://plus.google.com/113612142759476883204",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAAAA/90sajvVhfnk/photo.jpg"
+ }
+ },
+ "verb": "post",
+ "object": {
+ "objectType": "note",
+ "content": "I've got a date with the G+ API this weekend to make a ThinkUp plugin!",
+ "originalContent": "",
+ "url": "https://plus.google.com/113612142759476883204/posts/9G8sfZSZqFa",
+ "replies": {
+ "totalItems": 24
+ },
+ "plusoners": {
+ "totalItems": 159
+ },
+ "resharers": {
+ "totalItems": 29
+ },
+ "attachments": [
+ {
+ "objectType": "article",
+ "displayName": "Getting Started on the Google+ API - Google+ Platform Blog",
+ "content": "Official source of information about the Google+ platform",
+ "url": "http://googleplusplatform.blogspot.com/2011/09/getting-started-on-google-api.html"
+ },
+ {
+ "objectType": "photo",
+ "image": {
+ "url": "http://images0-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&gadget=a&resize_h=100&url=http%3A%2F%2F2.bp.blogspot.com%2F-XV4uMT_Pn7g%2FTnI5T7BCmpI%2FAAAAAAAAAIw%2FCecR4H-s80k%2Fs320%2Fauthorize.png",
+ "type": "image/jpeg"
+ },
+ "fullImage": {
+ "url": "http://2.bp.blogspot.com/-XV4uMT_Pn7g/TnI5T7BCmpI/AAAAAAAAAIw/CecR4H-s80k/s320/authorize.png",
+ "type": "image/jpeg"
+ }
+ }
+ ]
+ },
+ "provider": {
+ "title": "Google+"
+ },
+ "access": {
+ "kind": "plus#acl",
+ "items": [
+ {
+ "type": "public"
+ }
+ ]
+ }
+ }
+ ]
+}
View
81 webapp/plugins/googleplus/tests/apidata/people_me-access_token=faux-access-token
@@ -0,0 +1,81 @@
+{
+ "kind": "plus#person",
+ "id": "113612142759476883204",
+ "displayName": "Gina Trapani",
+ "tagline": "ThinkUp lead developer, This Week in Google co-host, Todo.txt apps creator, founding editor of Lifehacker",
+ "gender": "female",
+ "aboutMe": "I'm a coder and blogger based in San Diego, California by way of Brooklyn, New York. Currently I lead development on \u003ca href=\"http://thinkupapp.com\"\u003eThinkUp\u003c/a\u003e, an open source social media insights engine the White House uses. I blog at \u003ca href=\"http://smarterware.org\"\u003eSmarterware\u003c/a\u003e, co-host \u003ca href=\"http://twit.tv/twig\"\u003eThis Week in Google\u003c/a\u003e, and made a \u003ca href=\"http://todotxt.com\"\u003etodo list app for the command line\u003c/a\u003e and \u003ca href=\"https://market.android.com/details?id=com.todotxt.todotxttouch\"\u003eAndroid\u003c/a\u003e.\u003cdiv\u003e\u003cbr\u003e\u003c/div\u003e\u003cdiv\u003eI founded \u003ca href=\"http://lifehacker.com\"\u003eLifehacker.com\u003c/a\u003e,\na daily weblog on software and personal productivity, and authored a\nbook based on the web site which is in its third edition: \u003ci\u003e\u003ca href=\"http://www.amazon.com/o/ASIN/1118018370/ref=nosim/lifehackerboo-20\"\u003eLifehacker: The Guide to Working Smarter, Faster, and Better\u003c/a\u003e\u003c/i\u003e (Wiley, June 2011).\u003c/div\u003e",
+ "relationshipStatus": "in_civil_union",
+ "url": "https://plus.google.com/113612142759476883204",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAIAQ/MQyHty0--Tc/photo.jpg"
+ },
+ "urls": [
+ {
+ "value": "http://ginatrapani.org"
+ },
+ {
+ "value": "http://smarterware.org"
+ },
+ {
+ "value": "http://twit.tv/twig"
+ },
+ {
+ "value": "http://github.com/ginatrapani"
+ },
+ {
+ "value": "http://twitter.com/ginatrapani"
+ },
+ {
+ "value": "http://scribbling.net"
+ },
+ {
+ "value": "http://en.wikipedia.org/wiki/Gina_Trapani"
+ },
+ {
+ "value": "http://www.flickr.com/people/ginatrapani/"
+ },
+ {
+ "value": "http://www.quora.com/gina-trapani-1"
+ },
+ {
+ "value": "https://plus.google.com/113612142759476883204",
+ "type": "profile"
+ },
+ {
+ "value": "https://www.googleapis.com/plus/v1/people/113612142759476883204",
+ "type": "json"
+ }
+ ],
+ "organizations": [
+ {
+ "name": "Expert Labs",
+ "title": "Project Director",
+ "type": "work"
+ },
+ {
+ "name": "Gawker Media",
+ "title": "Lead Editor, Lifehacker.com",
+ "type": "work"
+ },
+ {
+ "name": "Kinja",
+ "title": "Developer",
+ "type": "work"
+ },
+ {
+ "name": "Bolt.com",
+ "title": "Developer",
+ "type": "work"
+ }
+ ],
+ "placesLived": [
+ {
+ "value": "Brooklyn"
+ },
+ {
+ "value": "San Diego",
+ "primary": true
+ }
+ ]
+}
View
81 ...ns/googleplus/tests/apidata/people_me-access_token=faux-access-token-fields=displayName,id,image,tagline
@@ -0,0 +1,81 @@
+{
+ "kind": "plus#person",
+ "id": "113612142759476883204",
+ "displayName": "Gina Trapani",
+ "tagline": "ThinkUp lead developer, This Week in Google co-host, Todo.txt apps creator, founding editor of Lifehacker",
+ "gender": "female",
+ "aboutMe": "I'm a coder and blogger based in San Diego, California by way of Brooklyn, New York. Currently I lead development on \u003ca href=\"http://thinkupapp.com\"\u003eThinkUp\u003c/a\u003e, an open source social media insights engine the White House uses. I blog at \u003ca href=\"http://smarterware.org\"\u003eSmarterware\u003c/a\u003e, co-host \u003ca href=\"http://twit.tv/twig\"\u003eThis Week in Google\u003c/a\u003e, and made a \u003ca href=\"http://todotxt.com\"\u003etodo list app for the command line\u003c/a\u003e and \u003ca href=\"https://market.android.com/details?id=com.todotxt.todotxttouch\"\u003eAndroid\u003c/a\u003e.\u003cdiv\u003e\u003cbr\u003e\u003c/div\u003e\u003cdiv\u003eI founded \u003ca href=\"http://lifehacker.com\"\u003eLifehacker.com\u003c/a\u003e,\na daily weblog on software and personal productivity, and authored a\nbook based on the web site which is in its third edition: \u003ci\u003e\u003ca href=\"http://www.amazon.com/o/ASIN/1118018370/ref=nosim/lifehackerboo-20\"\u003eLifehacker: The Guide to Working Smarter, Faster, and Better\u003c/a\u003e\u003c/i\u003e (Wiley, June 2011).\u003c/div\u003e",
+ "relationshipStatus": "in_civil_union",
+ "url": "https://plus.google.com/113612142759476883204",
+ "image": {
+ "url": "https://lh3.googleusercontent.com/-S7felHynDq8/AAAAAAAAAAI/AAAAAAAAIAQ/MQyHty0--Tc/photo.jpg"
+ },
+ "urls": [
+ {
+ "value": "http://ginatrapani.org"
+ },
+ {
+ "value": "http://smarterware.org"
+ },
+ {
+ "value": "http://twit.tv/twig"
+ },
+ {
+ "value": "http://github.com/ginatrapani"
+ },
+ {
+ "value": "http://twitter.com/ginatrapani"
+ },
+ {
+ "value": "http://scribbling.net"
+ },
+ {
+ "value": "http://en.wikipedia.org/wiki/Gina_Trapani"
+ },
+ {
+ "value": "http://www.flickr.com/people/ginatrapani/"
+ },
+ {
+ "value": "http://www.quora.com/gina-trapani-1"
+ },
+ {
+ "value": "https://plus.google.com/113612142759476883204",
+ "type": "profile"
+ },
+ {
+ "value": "https://www.googleapis.com/plus/v1/people/113612142759476883204",
+ "type": "json"
+ }
+ ],
+ "organizations": [
+ {
+ "name": "Expert Labs",
+ "title": "Project Director",
+ "type": "work"
+ },
+ {
+ "name": "Gawker Media",
+ "title": "Lead Editor, Lifehacker.com",
+ "type": "work"
+ },
+ {
+ "name": "Kinja",
+ "title": "Developer",
+ "type": "work"
+ },
+ {
+ "name": "Bolt.com",
+ "title": "Developer",
+ "type": "work"
+ }
+ ],
+ "placesLived": [
+ {
+ "value": "Brooklyn"
+ },
+ {
+ "value": "San Diego",
+ "primary": true
+ }
+ ]
+}
View
15 webapp/plugins/googleplus/tests/apidata/people_me-access_token=faux-access-token-me-403-error
@@ -0,0 +1,15 @@
+{
+ "error": {
+ "errors": [
+ {
+ "domain": "global",
+ "reason": "authError",
+ "message": "Invalid Credentials",
+ "locationType": "header",
+ "location": "Authorization"
+ }
+ ],
+ "code": 403,
+ "message": "Access Not Configured"
+ }
+}
View
15 ...eplus/tests/apidata/people_me-access_token=faux-expired-access-token-fields=displayName,id,image,tagline
@@ -0,0 +1,15 @@
+{
+ "error": {
+ "errors": [
+ {
+ "domain": "global",
+ "reason": "authError",
+ "message": "Invalid Credentials",
+ "locationType": "header",
+ "location": "Authorization"
+ }
+ ],
+ "code": 401,
+ "message": "Invalid Credentials"
+ }
+}
View
1  ...lugins/googleplus/tests/apidata/tok-client_id=ci-client_secret=cs-grant_type=authorization_code-code=tc1
@@ -0,0 +1 @@
+{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
1  ...=cs-grant_type=authorization_code-code=tc1-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -0,0 +1 @@
+{"access_token":"faux-access-token-without-https","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token-without-https"}
View
1  ...cs-grant_type=authorization_code-code=tc1-redirect_uri=https%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -0,0 +1 @@
+{"access_token":"faux-access-token-with-https","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token-with-https"}
View
1  ...sts/apidata/tok-client_id=ci-client_secret=cs-grant_type=refresh_token-refresh_token=test-refresh_token1
@@ -0,0 +1 @@
+{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
1  ...ests/apidata/tok-client_id=ci-client_secret=cs-grant_type=refresh_token-refresh_token=test_refresh_token
@@ -0,0 +1 @@
+{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
1  ...rant_type=authorization_code-code=tgpc-403-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -0,0 +1 @@
+{"access_token":"faux-access-token-me-403-error","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token-me-403-error"}
View
1  ...nt_type=authorization_code-code=tgpc-error-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -0,0 +1 @@
+{"error":"google_error_text"}
View
1  ...3c-grant_type=authorization_code-code=tgpc-redirect_uri=http%3A%2F%2Ftest%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -0,0 +1 @@
+{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
2  webapp/plugins/googleplus/tests/classes/mock.GooglePlusAPIAccessor.php
@@ -41,7 +41,7 @@ class GooglePlusAPIAccessor {
/**
* @var str
*/
- var $data_location = 'webapp/plugins/googleplus/tests/data/';
+ var $data_location = 'webapp/plugins/googleplus/tests/apidata/';
/**
* Make a Google+ API request.
* @param str $path
Please sign in to comment.
Something went wrong with that request. Please try again.