Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Shorten test data filenames for Windows compatibility

* Add check to test set up to make sure long filenames aren't added to the project in the future
Closes #1406
  • Loading branch information...
commit 47b528098088f30d1349fb0b468c1e54a20c62fb 1 parent c97399d
@ginatrapani ginatrapani authored
Showing with 92 additions and 535 deletions.
  1. +13 −0 tests/classes/class.ThinkUpBasicUnitTestCase.php
  2. +2 −2 webapp/plugins/foursquare/tests/TestOfFoursquareCrawler.php
  3. +11 −11 webapp/plugins/foursquare/tests/TestOfFoursquarePluginConfigurationController.php
  4. +31 −10 webapp/plugins/foursquare/tests/classes/mock.FoursquareAPIAccessor.php
  5. 0  ...=ci-client_secret=cs-grant_type=authorization_code-redirect_uri=http:__test_account_-p=foursquare-code=5dn}
  6. 0  ...lient_secret=cs-grant_type=authorization_code-redirect_uri=http:__test_account_-p=foursquare-code=error5dn}
  7. +7 −8 webapp/plugins/googleplus/tests/TestOfGooglePlusCrawler.php
  8. +5 −5 webapp/plugins/googleplus/tests/TestOfGooglePlusPluginConfigurationController.php
  9. +23 −8 webapp/plugins/googleplus/tests/classes/mock.GooglePlusAPIAccessor.php
  10. +0 −1  ...ode-code=test-google-provided-code-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
  11. +0 −1  ...-provided-code-should-return-error-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
  12. +0 −1  ...ovided-code-user-profile-403-error-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
  13. +0 −1  ...okenclient_id=test-client-id-client_secret=test-client-secret-grant_type=authorization_code-code=test-code1
  14. +0 −1  ...authorization_code-code=test-code1-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
  15. +0 −1  ...uthorization_code-code=test-code1-redirect_uri=https%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
  16. +0 −1  ...=test-client-id-client_secret=test-client-secret-grant_type=refresh_token-refresh_token=test-refresh_token1
  17. +0 −1  ...d=test_client_id-client_secret=test_client_secret-grant_type=refresh_token-refresh_token=test_refresh_token
  18. +0 −137 ...nts/people_113612142759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
  19. +0 −17 ...ests/testdata/people_113612142759476883204-access_token=fauxaccesstoken-fields=displayName,id,image,tagline
  20. +0 −137 ...ata/people_113612142759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
  21. +0 −81 webapp/plugins/googleplus/tests/testdata/people_me-access_token=faux-access-token
  22. +0 −81 ...gins/googleplus/tests/testdata/people_me-access_token=faux-access-token-fields=displayName,id,image,tagline
  23. +0 −15 webapp/plugins/googleplus/tests/testdata/people_me-access_token=faux-access-token-me-403-error
  24. +0 −15 ...gleplus/tests/testdata/people_me-access_token=faux-expired-access-token-fields=displayName,id,image,tagline
View
13 tests/classes/class.ThinkUpBasicUnitTestCase.php
@@ -231,6 +231,19 @@ public static function isTestEnvironmentReady() {
$message = "In order to test your ThinkUp installation, \$THINKUP_CFG['cache_pages'] must be set to false.";
}
+ $cmd = "find . -type f -name '????????????????????????????????????????????????????????????????????????????????".
+ "?????????????????????????????????????????????????????????????????????????????????????????????????????????????".
+ "????????*'";
+ @exec($cmd, $filenames, $return_val);
+ if (is_array($filenames) && sizeof($filenames) > 1 ) {
+ $message = "Filenames in the repository are greater than 200 characters in length:
+";
+ foreach ($filenames as $filename) {
+ $message .= $filename."
+";
+ }
+ }
+
if (isset($message)) {
echo "Stopping tests...Test environment isn't ready.
".$message."
View
4 webapp/plugins/foursquare/tests/TestOfFoursquareCrawler.php
@@ -158,8 +158,8 @@ public function testGetOAuthTokens() {
$fsc = new FoursquareCrawler($this->profile1_instance, 'secret', 10);
// Test getting token
- $tokens = $fsc->getOAuthTokens('test_client_id', 'test_client_secret',
- 'http://dev.thinkup.com/account/?p=foursquare', 'test-foursquare-provided-code');
+ $tokens = $fsc->getOAuthTokens('ci', 'cs',
+ 'http://test/account/?p=foursquare', '5dn');
$this->assertEqual($tokens->access_token, 'secret');
}
View
22 webapp/plugins/foursquare/tests/TestOfFoursquarePluginConfigurationController.php
@@ -46,7 +46,7 @@ public function setUp(){
// Register the foursquare plugin
$webapp_plugin_registrar->registerPlugin('foursquare', 'FoursquarePlugin');
// Set the server name variable as we don't actually have a server
- $_SERVER['SERVER_NAME'] = 'dev.thinkup.com';
+ $_SERVER['SERVER_NAME'] = 'test';
}
public function tearDown() {
@@ -67,12 +67,12 @@ private function buildController() {
$builder_plugin_options[] =
FixtureBuilder::build('options',
array('namespace' => $namespace, 'option_name' => 'foursquare_client_id',
- 'option_value' => "test_client_id") );
+ 'option_value' => "ci") );
// Create the client secret option
$builder_plugin_options[] =
FixtureBuilder::build('options',
array('namespace' => $namespace, 'option_name' => 'foursquare_client_secret',
- 'option_value' => "test_client_secret") );
+ 'option_value' => "cs") );
// Log the user in
$this->simulateLogin('me@example.com');
// Get an owner DAO
@@ -100,10 +100,10 @@ private function buildPluginOptions() {
$namespace = OptionDAO::PLUGIN_OPTIONS . '-'.$data['id'];
// Create the client id option
$builders[] = FixtureBuilder::build('options', array('namespace' => $namespace,
- 'option_name' => 'foursquare_client_id', 'option_value' => "test_client_id") );
+ 'option_name' => 'foursquare_client_id', 'option_value' => "ci") );
// Create the client secret option
$builders[] = FixtureBuilder::build('options', array('namespace' => $namespace,
- 'option_name' => 'foursquare_client_secret', 'option_value' => "test_client_secret") );
+ 'option_name' => 'foursquare_client_secret', 'option_value' => "cs") );
return $builders;
}
@@ -161,14 +161,14 @@ public function testOptionList2HashByOptionName() {
// Check the name of the client id option is foursquare_client_id
$this->assertEqual($options_hash['foursquare_client_id']->option_name, 'foursquare_client_id');
// Check the value is test_client_id
- $this->assertEqual($options_hash['foursquare_client_id']->option_value, 'test_client_id');
+ $this->assertEqual($options_hash['foursquare_client_id']->option_value, 'ci');
// Check the client secret is the 3rd option set
$this->assertEqual($options_hash['foursquare_client_secret']->id, 3);
// Check that the name of the client secret option is foursquare_client_secret
$this->assertEqual($options_hash['foursquare_client_secret']->option_name, 'foursquare_client_secret');
// Check the value of the client secret is test_client_secret
- $this->assertEqual($options_hash['foursquare_client_secret']->option_value, 'test_client_secret');
+ $this->assertEqual($options_hash['foursquare_client_secret']->option_value, 'cs');
}
// Check all the correct options get added to the template for a non admin
@@ -285,13 +285,13 @@ public function testGetPluginOptions() {
// Check they are all set correctly
$this->assertEqual($options_hash['foursquare_client_id']->id, 2);
$this->assertEqual($options_hash['foursquare_client_id']->option_name, 'foursquare_client_id');
- $this->assertEqual($options_hash['foursquare_client_id']->option_value, 'test_client_id');
+ $this->assertEqual($options_hash['foursquare_client_id']->option_value, 'ci');
// Get a single undefined option
$this->assertFalse($controller->getPluginOption('not defined'));
// Get a single defined option
- $this->assertEqual($controller->getPluginOption('foursquare_client_id'), 'test_client_id');
+ $this->assertEqual($controller->getPluginOption('foursquare_client_id'), 'ci');
}
// Check the correct screen is presented to the users when the configuration is not complete
@@ -381,7 +381,7 @@ public function testGetOAuthTokens() {
$controller = new FoursquarePluginConfigurationController($owner);
// Set the code foursquare would return from a real request
- $_GET['code'] = 'test-foursquare-provided-code';
+ $_GET['code'] = '5dn';
// Check we get the tokens and tell the user it was a sucess
$results = $controller->go();
$v_mgr = $controller->getViewManager();
@@ -429,7 +429,7 @@ public function testGetOAuthTokensWithError() {
$controller = new FoursquarePluginConfigurationController($owner);
// Set the return code from foursquare to anything not valid
- $_GET['code'] = 'test-foursquare-provided-code-should-return-error';
+ $_GET['code'] = 'error5dn';
// Check the user is told theres a problem
$results = $controller->go();
$v_mgr = $controller->getViewManager();
View
41 webapp/plugins/foursquare/tests/classes/mock.FoursquareAPIAccessor.php
@@ -36,6 +36,10 @@ class FoursquareAPIAccessor {
*/
var $api_domain = 'https://api.foursquare.com/v2/';
/**
+ * @var str
+ */
+ var $access_token_request_url = "https://foursquare.com/oauth2/access_token";
+ /**
* @var str - Where the data foursquare would return lives
*/
var $data_location = 'webapp/plugins/foursquare/tests/testdata/';
@@ -47,20 +51,19 @@ class FoursquareAPIAccessor {
* @return array Decoded JSON response
*/
public function apiRequest($path, $access_token, $fields=null) {
-
// Add the path to the part of the API they want to access and OAuth token to the URL
$url = $this->api_domain.$path.'?oauth_token='.$access_token;
// If there are additional parameters passed in add them to the URL also
- if($fields != null){
- foreach( $fields as $key=>$value) {
+ if ($fields != null){
+ foreach ( $fields as $key=>$value) {
$url = $url.'&'.$key.'='.$value;
}
}
// Get the path to where our test data lives
$FAUX_DATA_PATH = THINKUP_ROOT_PATH . $this->data_location;
- // Strip the API domain from the request so we dont have to have super long file names
+ // Strip the API domain from the request so we don't have long test data file names
$url = str_replace($this->api_domain, '', $url);
// Replace all special characters in the URL with a -
$url = str_replace('/', '_', $url);
@@ -69,14 +72,21 @@ public function apiRequest($path, $access_token, $fields=null) {
// Decode the JSON in the reply
return self::decodeFileContents($FAUX_DATA_PATH.$url);
}
- // Decode JSON in our test files
- private static function decodeFileContents($file_path, $decode_json=true) {
+ /**
+ * Decode JSON in our test files
+ *
+ * @param str $file_path
+ * @param bool $decode_json
+ * @return mixed Decoded JSON or text file contents
+ */
+ private static function decodeFileContents($file_path, $decode_json=true) {
// If we have set the debug flag in the terminal set the debug variable to true
$debug = (getenv('TEST_DEBUG')!==false) ? true : false;
// If we are in debug mode report that were reading a local test file
if ($debug) {
- echo "READING LOCAL TEST DATA FILE: ".$file_path. '';
+ echo "READING LOCAL TEST DATA FILE: ".$file_path. '
+';
}
// Get the contents of the files
$contents= file_get_contents($file_path);
@@ -86,7 +96,8 @@ private static function decodeFileContents($file_path, $decode_json=true) {
$decoded = json_decode($contents);
// If the decode failed and were in debug mode tell the user
if ($decoded == null && $debug) {
- echo "JSON was not decoded! Check if it is valid JSON at http://jsonlint.com/";
+ echo "JSON was not decoded! Check if it is valid JSON at http://jsonlint.com/
+";
}
// Return the decoded JSON
return $decoded;
@@ -111,13 +122,23 @@ public function rawPostApiRequest($path, $fields, $decode_json=true) {
// Variable to add all the fields to
$fields_string = '';
// Add each field and its value to the fields string
- foreach($fields as $key=>$value) {
+ foreach ($fields as $key=>$value) {
$fields_string .= $key.'='.$value.'&';
}
+ // Strip the API domain from the request so we don't have long test data file names
+ $path = str_replace($this->access_token_request_url, '', $path);
// Replace the &'s in the string with a -
rtrim($fields_string,'&');
+ $file_path = $path . $fields_string;
+ $debug = (getenv('TEST_DEBUG')!==false) ? true : false;
+ // If we are in debug mode report that were reading a local test file
+ if ($debug) {
+ echo "READING LOCAL TEST DATA FILE: ".$file_path. '
+';
+ }
+
// Make the request
- return self::rawApiRequest($path.$fields_string, $decode_json);
+ return self::rawApiRequest($file_path, $decode_json);
}
/**
View
0  ...square-code=test-foursquare-provided-code → ...ttp:__test_account_-p=foursquare-code=5dn
File renamed without changes
View
0  ...rsquare-provided-code-should-return-error → ..._test_account_-p=foursquare-code=error5dn
File renamed without changes
View
15 webapp/plugins/googleplus/tests/TestOfGooglePlusCrawler.php
@@ -31,7 +31,6 @@
require_once THINKUP_WEBAPP_PATH.'_lib/extlib/simpletest/web_tester.php';
require_once THINKUP_WEBAPP_PATH.'plugins/googleplus/model/class.GooglePlusCrawler.php';
require_once THINKUP_WEBAPP_PATH.'plugins/googleplus/tests/classes/mock.GooglePlusAPIAccessor.php';
-//require_once THINKUP_WEBAPP_PATH.'plugins/googleplus/tests/classes/mock.googleplus.php';
class TestOfGooglePlusCrawler extends ThinkUpUnitTestCase {
/**
@@ -96,7 +95,7 @@ public function testFetchUser() {
public function testInitializeInstanceUserFreshToken() {
$gpc = new GooglePlusCrawler($this->profile1_instance, 'faux-access-token', 10);
- $gpc->initializeInstanceUser('test_client_id', 'test_client_secret', 'valid_token', 'test_refresh_token', 1);
+ $gpc->initializeInstanceUser('ci', 'cs', 'valid_token', 'test_refresh_token', 1);
$user_dao = new UserMySQLDAO();
$user = $user_dao->getUserByName('Gina Trapani', 'google+');
@@ -113,7 +112,7 @@ public function testInitializeInstanceUserFreshToken() {
public function testInitializeInstanceUserExpiredToken() {
$gpc = new GooglePlusCrawler($this->profile1_instance, 'faux-expired-access-token', 10);
- $gpc->initializeInstanceUser('test_client_id', 'test_client_secret', 'valid_token', 'test_refresh_token', 1);
+ $gpc->initializeInstanceUser('ci', 'cs', 'valid_token', 'test_refresh_token', 1);
$user_dao = new UserMySQLDAO();
$user = $user_dao->getUserByName('Gina Trapani', 'google+');
@@ -133,12 +132,12 @@ public function testGetOAuthTokens() {
$gpc = new GooglePlusCrawler($this->profile1_instance, 'fauxaccesstoken', 10);
//test getting initial token
- $tokens = $gpc->getOAuthTokens('test-client-id', 'test-client-secret', 'test-code1', 'authorization_code');
+ $tokens = $gpc->getOAuthTokens('ci', 'cs', 'tc1', 'authorization_code');
$this->assertEqual($tokens->access_token, 'faux-access-token');
$this->assertEqual($tokens->refresh_token, 'faux-refresh-token');
//test refreshing token
- $tokens = $gpc->getOAuthTokens('test-client-id', 'test-client-secret', 'test-refresh_token1',
+ $tokens = $gpc->getOAuthTokens('ci', 'cs', 'test-refresh_token1',
'refresh_token');
$this->assertEqual($tokens->access_token, 'faux-access-token');
$this->assertEqual($tokens->refresh_token, 'faux-refresh-token');
@@ -148,13 +147,13 @@ public function testGetOAuthTokensWithAndWithoutSSL() {
$gpc = new GooglePlusCrawler($this->profile1_instance, 'fauxaccesstoken', 10);
//test getting token with HTTPS
- $_SERVER['SERVER_NAME'] = 'dev.thinkup.com';
+ $_SERVER['SERVER_NAME'] = 'test';
$_SERVER['HTTPS'] = 'y';
$cfg = Config::getInstance();
$cfg->setValue('site_root_path', '/');
$redirect_uri = urlencode(Utils::getApplicationURL().'account/?p=google%2B');
- $tokens = $gpc->getOAuthTokens('test-client-id', 'test-client-secret', 'test-code1', 'authorization_code',
+ $tokens = $gpc->getOAuthTokens('ci', 'cs', 'tc1', 'authorization_code',
$redirect_uri);
$this->assertEqual($tokens->access_token, 'faux-access-token-with-https');
$this->assertEqual($tokens->refresh_token, 'faux-refresh-token-with-https');
@@ -163,7 +162,7 @@ public function testGetOAuthTokensWithAndWithoutSSL() {
$_SERVER['HTTPS'] = null;
$redirect_uri = urlencode(Utils::getApplicationURL().'account/?p=google%2B');
- $tokens = $gpc->getOAuthTokens('test-client-id', 'test-client-secret', 'test-code1', 'authorization_code',
+ $tokens = $gpc->getOAuthTokens('ci', 'cs', 'tc1', 'authorization_code',
$redirect_uri);
$this->assertEqual($tokens->access_token, 'faux-access-token-without-https');
$this->assertEqual($tokens->refresh_token, 'faux-refresh-token-without-https');
View
10 webapp/plugins/googleplus/tests/TestOfGooglePlusPluginConfigurationController.php
@@ -42,7 +42,7 @@ public function setUp(){
parent::setUp();
$webapp_plugin_registrar = PluginRegistrarWebapp::getInstance();
$webapp_plugin_registrar->registerPlugin('googleplus', 'GooglePlusPlugin');
- $_SERVER['SERVER_NAME'] = 'dev.thinkup.com';
+ $_SERVER['SERVER_NAME'] = 'test';
}
public function tearDown(){
@@ -261,7 +261,7 @@ private function buildPluginOptions() {
$builders[] = FixtureBuilder::build('options',
array('namespace' => $namespace, 'option_name' => 'google_plus_client_id', 'option_value' => "id") );
$builders[] = FixtureBuilder::build('options',
- array('namespace' => $namespace, 'option_name' => 'google_plus_client_secret', 'option_value' => "s3cr3t") );
+ array('namespace' => $namespace, 'option_name' => 'google_plus_client_secret', 'option_value' => "s3c") );
return $builders;
}
@@ -281,7 +281,7 @@ public function testGetOAuthTokens() {
$owner = $owner_dao->getByEmail(Session::getLoggedInUser());
$controller = new GooglePlusPluginConfigurationController($owner);
- $_GET['code'] = 'test-google-provided-code';
+ $_GET['code'] = 'tgpc';
$results = $controller->go();
$v_mgr = $controller->getViewManager();
@@ -318,7 +318,7 @@ public function testGetOAuthTokensWithError() {
$owner = $owner_dao->getByEmail(Session::getLoggedInUser());
$controller = new GooglePlusPluginConfigurationController($owner);
- $_GET['code'] = 'test-google-provided-code-should-return-error';
+ $_GET['code'] = 'tgpc-error';
$results = $controller->go();
$v_mgr = $controller->getViewManager();
@@ -345,7 +345,7 @@ public function testGetUserProfileWith403Error() {
$owner = $owner_dao->getByEmail(Session::getLoggedInUser());
$controller = new GooglePlusPluginConfigurationController($owner);
- $_GET['code'] = 'test-google-provided-code-user-profile-403-error';
+ $_GET['code'] = 'tgpc-403';
$results = $controller->go();
$v_mgr = $controller->getViewManager();
View
31 webapp/plugins/googleplus/tests/classes/mock.GooglePlusAPIAccessor.php
@@ -34,11 +34,14 @@ class GooglePlusAPIAccessor {
* @var str
*/
var $api_domain = 'https://www.googleapis.com/plus/v1/';
-
/**
* @var str
*/
- var $data_location = 'webapp/plugins/googleplus/tests/testdata/';
+ var $access_token_request_url = "https://accounts.google.com/o/oauth2/token";
+ /**
+ * @var str
+ */
+ var $data_location = 'webapp/plugins/googleplus/tests/data/';
/**
* Make a Google+ API request.
* @param str $path
@@ -81,9 +84,9 @@ private static function decodeFileContents($file_path, $decode_json=true) {
}
/**
- * Make a Graph API request with the absolute URL. This URL needs to include the https://graph.googleplus.com/ at
- * the start and the access token at the end as well as everything in between. It is literally the raw URL that
- * needs to be passed in.
+ * Make a Graph API request with the absolute URL. This URL needs to include the
+ * https://www.googleapis.com/plus/v1/ at the start and the access token at the end as well as everything in
+ * between. It is literally the raw URL that needs to be passed in.
*
* @param str $path
* @param bool $decode_json Defaults to true, if true returns decoded JSON
@@ -91,12 +94,18 @@ private static function decodeFileContents($file_path, $decode_json=true) {
*/
public function rawPostApiRequest($path, $fields, $decode_json=true) {
$fields_string = '';
- foreach($fields as $key=>$value) {
+ foreach ($fields as $key=>$value) {
$fields_string .= $key.'='.$value.'&';
}
- rtrim($fields_string,'&');
- return self::rawApiRequest($path.$fields_string, $decode_json);
+ // Replace the &'s in the string with a -
+ $fields_string = str_replace('&', '-', $fields_string);
+ $fields_string = rtrim($fields_string,'-');
+
+ $file_path = $path . $fields_string;
+
+ $debug = (getenv('TEST_DEBUG')!==false) ? true : false;
+ return self::rawApiRequest($file_path, $decode_json);
}
/**
@@ -113,10 +122,16 @@ private function rawApiRequest($path, $decode_json=true) {
$url = preg_replace('/([\?\&])access_token\=[^\?\&]+([\?\&])*/', "$1", $url);
$url = preg_replace('/[\?\&]$/', '', $url);
$url = str_replace($this->api_domain, '', $url);
+ $url = str_replace($this->access_token_request_url, 'tok-', $url);
$url = str_replace(':', '', $url);
$url = str_replace('/', '_', $url);
$url = str_replace('&', '-', $url);
$url = str_replace('?', '-', $url);
+ // If we are in debug mode report that were reading a local test file
+ if ($debug) {
+ echo "READING LOCAL TEST DATA FILE: ".$FAUX_DATA_PATH.$url. '
+';
+ }
return self::decodeFileContents($FAUX_DATA_PATH.$url, $decode_json);
}
View
1  ...le-provided-code-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -1 +0,0 @@
-{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
1  ...uld-return-error-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -1 +0,0 @@
-{"error":"google_error_text"}
View
1  ...rofile-403-error-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -1 +0,0 @@
-{"access_token":"faux-access-token-me-403-error","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token-me-403-error"}
View
1  ...-client-id-client_secret=test-client-secret-grant_type=authorization_code-code=test-code1
@@ -1 +0,0 @@
-{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
1  ...-code=test-code1-redirect_uri=http%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -1 +0,0 @@
-{"access_token":"faux-access-token-without-https","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token-without-https"}
View
1  ...code=test-code1-redirect_uri=https%3A%2F%2Fdev.thinkup.com%2Faccount%2F%3Fp%3Dgoogle%252B
@@ -1 +0,0 @@
-{"access_token":"faux-access-token-with-https","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token-with-https"}
View
1  ...ient_secret=test-client-secret-grant_type=refresh_token-refresh_token=test-refresh_token1
@@ -1 +0,0 @@
-{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
1  ...lient_secret=test_client_secret-grant_type=refresh_token-refresh_token=test_refresh_token
@@ -1 +0,0 @@
-{"access_token":"faux-access-token","token_type":"Bearer","expires_in":3600,"refresh_token":"faux-refresh-token"}
View
137 ...42759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
@@ -1,137 +0,0 @@
-{
- "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 ...le_113612142759476883204-access_token=fauxaccesstoken-fields=displayName,id,image,tagline
@@ -1,17 +0,0 @@
-{
- "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 ...42759476883204_activities_public-access_token=fauxaccesstoken-alt=json-maxResults=20-pp=1
@@ -1,137 +0,0 @@
-{
- "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/testdata/people_me-access_token=faux-access-token
@@ -1,81 +0,0 @@
-{
- "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 ...sts/testdata/people_me-access_token=faux-access-token-fields=displayName,id,image,tagline
@@ -1,81 +0,0 @@
-{
- "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 ...p/plugins/googleplus/tests/testdata/people_me-access_token=faux-access-token-me-403-error
@@ -1,15 +0,0 @@
-{
- "error": {
- "errors": [
- {
- "domain": "global",
- "reason": "authError",
- "message": "Invalid Credentials",
- "locationType": "header",
- "location": "Authorization"
- }
- ],
- "code": 403,
- "message": "Access Not Configured"
- }
-}
View
15 ...data/people_me-access_token=faux-expired-access-token-fields=displayName,id,image,tagline
@@ -1,15 +0,0 @@
-{
- "error": {
- "errors": [
- {
- "domain": "global",
- "reason": "authError",
- "message": "Invalid Credentials",
- "locationType": "header",
- "location": "Authorization"
- }
- ],
- "code": 401,
- "message": "Invalid Credentials"
- }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.