Open abhinav-bharti opened 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' }); });
Not enough information here. Do you get a token? What errors do you get when you try to use the token?
@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' }); });