node-bing-api icon indicating copy to clipboard operation
node-bing-api copied to clipboard

When I use spell checker I get the following error

Open vineethsagar opened this issue 8 years ago • 2 comments

{"_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 });

vineethsagar avatar Aug 17 '17 16:08 vineethsagar

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

vineethsagar avatar Aug 19 '17 16:08 vineethsagar

Could you provide a PR with the fix?

goferito avatar Aug 21 '17 10:08 goferito