Readme sytle

This commit is contained in:
goferito 2014-10-04 23:12:41 +02:00
parent 62cc2f86f7
commit c2cc69082f

View file

@ -10,32 +10,27 @@ npm install node-bing-api
Require the library and initialialize it with your account key: Require the library and initialialize it with your account key:
```` ```js
var Bing = require('node-bing-api')({ accKey: "your-account-key" }); var Bing = require('node-bing-api')({ accKey: "your-account-key" });
```` ```
Web Search ##### Web Search:
```` ```js
Bing.search("Pizza", Bing.search("Pizza", function(error, res, body){
// Callback
function(error, res, body){
console.log(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 skip: 3 // Skip first 3 results
}); });
```` ```
Images Search ##### Images Search:
```` ```js
Bing.images("Ninja Turtles", function(error, res, body){ Bing.images("Ninja Turtles", function(error, res, body){
console.log(body); console.log(body);
}, {skip: 50}); }, {skip: 50});
```` ```
### License ### License
MIT MIT