nraboy / ng-cordova-oauth

AngularJS oauth library for use with Apache Cordova projects
https://www.thepolyglotdeveloper.com
MIT License
456 stars 199 forks source link

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

Open abhinav-bharti opened 7 years ago

abhinav-bharti commented 7 years ago

@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' }); });

nraboy commented 7 years ago

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