Support for related search and spelling suggestions

This commit is contained in:
goferito 2015-11-06 20:41:19 +01:00
parent f3909e5c0f
commit 8d3d53c261
3 changed files with 96 additions and 0 deletions

View file

@ -108,6 +108,20 @@ Accepted filter values:
* Style:\<Photo | Graphics\>
* Face:\<Face | Portrait | Other\>
#### Related Search:
```js
Bing.relatedSearch('berlin', {market: 'en-US'}, function (err, res, body) {
var suggestions = body.d.results.map(function(r){ return r.Title});
console.log(suggestions.join('\n'));
});
```
#### Spelling Suggestions:
```js
Bing.spellingSuggestion('awsome spell', function (err, res, body) {
console.log(body.d.results[0]); //awesome spell
});
```
#### Specify Market
Getting spanish results: