Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. $scope.user = {};
  2. $scope.linkInstagram = function (user)
  3. {
  4. $scope.IGUsername = user.Instagramusername;
  5. $scope.IGPassword = user.Instagrampassword;
  6.  
  7. // Communicate with InstaGram API
  8. $http.get("https://api.instagram.com/oauth/authorize/", { params: { "client_id": "ca7816d417c74a5983ead8044548f4f8", "redirect_uri": "http://10.199.50.80/Apps/zealcity/www/#/callback", "response_type": "token" } })
  9. .success(function (data)
  10. {
  11. $scope.code = data.code;
  12. $scope.error_type = data.error_type;
  13. $scope.error_message = data.error_message;
  14. console.log($scope.error_message);
  15. })
  16. .error(function (data)
  17. {
  18. alert("ERROR");
  19. });
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement