Created
August 27, 2013 03:14
-
-
Save unisys12/6349279 to your computer and use it in GitHub Desktop.
Angular resource that is used to access Google Plus profile info...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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