I am having trouble decipering their page here to submit a comment https://developers.google.com/youtube/2.0/developers_guide_protocol_comments#Adding_a_comment
I have this in angular as you can see I have tried to set JSON as the type of content as google api says it can do this.. [see full source here https://github.com/landed1/landed1.github.io] videoApp.factory('myPostService', function($http) { var myPostService={ async: function(url,leToken) { $http({ url: url, method: "POST", data: "", headers: {'Content-Type': 'JSON','Bearer':leToken} }).success(function(data) { console.log('data '+data); if (!data.success) { // if not successful, bind errors to error variables $scope.errorName = data.errors.name; $scope.errorSuperhero = data.errors.superheroAlias; } else { // if successful, bind success message to message $scope.message = data.message; } }); //do more...or will the above send ? // Return the promise to the controller //return promise; } }; return myPostService; }); the above service is called from my controller that has already got a token and validated the token ok..now set as in $scope.token myPostService.async('https://gdata.youtube.com/feeds/api/videos/'+$scope.videoObject.videos[0].vId+'/comments?alt=json',$scope.token); I am getting an error that the response doesn't have my url as an ok domain and I have set this in the dev console (and had no problem authenticating so far) Its the lack of a good code example for JSON that is bothering me, so ok lets try with xml...where does that go ? Thanks for help here PS - stackideas have banned me for submitting questions based on some quality control issues so I am grateful for google groups.. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
