Hi All,
I am using meteor HTTP.call method in following way to call Azure/Bing Search API using GET call
var method = ‘GET’;
var url = ‘https://api.datamarket.azure.com/Bing/Search/Web/’;
var options = {
headers: {‘Content-Type’: ‘application/json’},
‘auth’:":Ms2cSpSocvUjxOmQ73oHjVZTFj1Xfwxg9Ko8PPimzuo",
query:“something”
}
HTTP.call(method, url, options, function(error, result) {
if (error) {
console.log(‘ERRR’);
console.log(error);
} else
console.log(‘RESULT’);
console.log(result);
});
Could anyone suggest whats wrong with this code ?