
Anonymous Community User asked a question.
Working with Angular
Hello, I am trying to use podio with angular and can not do that successfully. I got error when I am trying to authenticate which says "Missing parameter client_id","error":"invalid_client". I checked it several times and all parameters seems to be ok. Please help. I have deadline and I did not even start :) Thank you guys... My code is here: $scope.url = 'https://podio.com/oauth/token'; var YOUR_APP_ID = '******'; var YOUR_PODIO_APP_ID = ''; var YOUR_URL = 'http://localhost:11328';; var YOUR_APP_SECRET = '**'; var YOUR_PODIO_APP_TOKEN = '******'; $scope.fetch = function() { $scope.code = null; $scope.response = null; $http({ method: 'POST', url: $scope.url, params: 'grant_type=app&app_id=' + YOUR_PODIO_APP_ID + '&app_token=' + YOUR_PODIO_APP_TOKEN + '&client_id=' + YOUR_APP_ID + '&redirect_uri=' + YOUR_URL + '&client_secret=' + YOUR_APP_SECRET}). success(function(data, status) { $scope.status = status; $scope.data = data; }). error(function(data, status) { $scope.data = data || "Request failed"; $scope.status = status; }); };