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