Alias Bing.search to Bing.web
This commit is contained in:
parent
7133f9343e
commit
87650a37f6
2 changed files with 6 additions and 2 deletions
|
@ -16,7 +16,7 @@ var Bing = require('node-bing-api')({ accKey: "your-account-key" });
|
|||
|
||||
##### Web Search:
|
||||
```js
|
||||
Bing.search("Pizza", function(error, res, body){
|
||||
Bing.web("Pizza", function(error, res, body){
|
||||
console.log(body);
|
||||
},
|
||||
{
|
||||
|
|
|
@ -119,10 +119,14 @@ var Bing = function( options ) {
|
|||
* userAgent, reqTimeout, top, skip
|
||||
* @function
|
||||
*/
|
||||
Bing.prototype.search = function(query, callback, options) {
|
||||
Bing.prototype.web = function(query, callback, options) {
|
||||
this.searchVertical(query, "Web", callback, options);
|
||||
};
|
||||
|
||||
// Alias Bing.search to Bing.web
|
||||
// Note: Keep this for compatibility with older versions
|
||||
Bing.prototype.search = Bing.prototype.web;
|
||||
|
||||
|
||||
/**
|
||||
* Performs a Bing search in the Images vertical.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue