Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Gracefully handle disabled Google+ API access #1075
If the user sets up a Google API project on code.google.com but does not enable the Google+ API (that instruction is buried in the text), ThinkUp should gracefully handle the problem.
In that case, after attempting to auth your Google account, the JSON that gets returned is:
stdClass Object ( [error] => stdClass Object ( [errors] => Array (  => stdClass Object ( [domain] => usageLimits [reason] => accessNotConfigured [message] => Access Not Configured ) ) [code] => 403 [message] => Access Not Configured ) )
The GooglePlusConfigurationController should check for that error structure and give an informative error message instructing the user to turn G+ access on, with a link to a new troubleshooting documentation page with a screenshot.
This check should happen around line 116, ie, the app code shouldn't assume displayName and id come back in the $gplus_user object.
Related mailing list thread: