diff --git a/README.md b/README.md index 00201a4..d62bb09 100644 --- a/README.md +++ b/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