Open vineethsagar opened 7 years ago
{"_type": "ErrorResponse", "errors": [{"code": "RequestParameterMissing", "message": "Required parameter is missing.", "parameter": "text"}]}
Bing.spelling('awsome spell', function (err, res, body) { console.log(body.flaggedTokens.suggestions[0].suggestion); //awesome spell });
I found an error in your code {node.js} line no 75 var reqUri = opts.rootUri + vertical + "?q=" + query
it has to be var reqUri = opts.rootUri + vertical + "?text=" + query
Could you provide a PR with the fix?
{"_type": "ErrorResponse", "errors": [{"code": "RequestParameterMissing", "message": "Required parameter is missing.", "parameter": "text"}]}
Bing.spelling('awsome spell', function (err, res, body) { console.log(body.flaggedTokens.suggestions[0].suggestion); //awesome spell });