Skip to content

Instantly share code, notes, and snippets.

@unisys12
Created August 27, 2013 03:14
Show Gist options
  • Save unisys12/6349279 to your computer and use it in GitHub Desktop.
Save unisys12/6349279 to your computer and use it in GitHub Desktop.
Angular resource that is used to access Google Plus profile info...
function plusCtrl($scope, $resource){
$scope.plus = $resource('https://www.googleapis.com/plus/v1/people/<!--Google User ID Here-->',
{key: '<!--Your Google Access Key Here!-->', callback: 'JSON_CALLBACK'},
{get: {method: 'JSONP'}});
$scope.plusFeed = $scope.plus.get();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment