I am trying to implement a shortened url feature in my web application.So I am using google shorten url api in angularjs using ajax but I am not getting anything in response.`
$http.post('https://www.googleapis.com/urlshortener/v1/url?key=#key','http://uihacker.blogspot.ca/2013/04/javascript-use-googl-link-shortener.html').success(function(data,status,headers,config){
$scope.shortUrl=data.id;
}).
error(function(data,status,headers,config){
});
`
console.log(data)and everything else inside the block