From 62cc2f86f77b2229f0bcc9912213ecd4fad7d834 Mon Sep 17 00:00:00 2001 From: goferito Date: Sat, 4 Oct 2014 23:01:15 +0200 Subject: [PATCH] Update readme --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 13c20bd..00201a4 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,36 @@ npm install node-bing-api ```` ### Usage + +Require the library and initialialize it with 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); -}); +}, {skip: 50}); ```` ### License MIT +