Update readme
This commit is contained in:
parent
b392284941
commit
62cc2f86f7
1 changed files with 25 additions and 2 deletions
27
README.md
27
README.md
|
@ -7,13 +7,36 @@ npm install node-bing-api
|
||||||
````
|
````
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
|
Require the library and initialialize it with your account key:
|
||||||
|
|
||||||
````
|
````
|
||||||
var Bing = require('node-bing-api')({ accKey: "your-account-key" });
|
var Bing = require('node-bing-api')({ accKey: "your-account-key" });
|
||||||
|
````
|
||||||
|
|
||||||
Bing.search("Android", function(error, res, body){
|
Web Search
|
||||||
|
````
|
||||||
|
Bing.search("Pizza",
|
||||||
|
|
||||||
|
// Callback
|
||||||
|
function(error, res, body){
|
||||||
|
console.log(body);
|
||||||
|
},
|
||||||
|
|
||||||
|
// Search options
|
||||||
|
{
|
||||||
|
top: 10, // Number of results. Max 50.
|
||||||
|
skip: 3 // Skip first 3 results
|
||||||
|
});
|
||||||
|
````
|
||||||
|
|
||||||
|
Images Search
|
||||||
|
````
|
||||||
|
Bing.images("Ninja Turtles", function(error, res, body){
|
||||||
console.log(body);
|
console.log(body);
|
||||||
});
|
}, {skip: 50});
|
||||||
````
|
````
|
||||||
|
|
||||||
### License
|
### License
|
||||||
MIT
|
MIT
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue