ng-cordova-oauth icon indicating copy to clipboard operation
ng-cordova-oauth copied to clipboard

Not able to get user data from access token while using oauth2 acaess token

Open abhinav-bharti opened this issue 8 years ago • 1 comments

@nraboy ....... this is my code ! $http.get("https://api.linkedin.com/v1/people/~", { params: { oauth2_access_token: result.access_token, format: json } }) .then(function (res) { var alertPopup = $ionicPopup.alert({ title: 'User Data', template: JSON.stringify(res) }); $state.go('home'); }, function (error) { var alertPopup = $ionicPopup.alert({ title: 'Error', template: 'Error in getting user profile' }); });

abhinav-bharti avatar Apr 14 '17 05:04 abhinav-bharti

Not enough information here. Do you get a token? What errors do you get when you try to use the token?

nraboy avatar Jun 16 '17 03:06 nraboy