From 603c1c7b3fe75d5c5726b1627f305c2d099d4489 Mon Sep 17 00:00:00 2001 From: Scott McAllister Date: Wed, 13 Jan 2016 19:28:51 -0500 Subject: [PATCH 1/2] Updated readme file to document web only Bing API subscription support --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a2cd720..20c8045 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,13 @@ Accepted values: "Off", "Moderate", "Strict". *Moderate level should not include results with sexually explicit images or videos, but may include sexually explicit text.* +#### Web Only API Subscriptions + +To use this library with a web only subscription require and initialize it with this root uri: + +```js +var Bing = require('node-bing-api')({ accKey: "your-account-key", rootUri: "https://api.datamarket.azure.com/Bing/SearchWeb/v1/" }); +``` ## Running Tests In order to run the tests, the integration tests require to create a `secrets.js` file From e7f3d1ebd52570285bcd102b0ddd3b8d1bb09ec8 Mon Sep 17 00:00:00 2001 From: Scott McAllister Date: Wed, 13 Jan 2016 19:38:22 -0500 Subject: [PATCH 2/2] Improved formatting in readme change --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 20c8045..5d52d81 100644 --- a/README.md +++ b/README.md @@ -151,11 +151,13 @@ Accepted values: "Off", "Moderate", "Strict". or videos, but may include sexually explicit text.* #### Web Only API Subscriptions - -To use this library with a web only subscription require and initialize it with this root uri: - +To use this library with a web only subscription, you can require and initialize it with an alternate root url: ```js -var Bing = require('node-bing-api')({ accKey: "your-account-key", rootUri: "https://api.datamarket.azure.com/Bing/SearchWeb/v1/" }); +var Bing = require('node-bing-api') + ({ + accKey: "your-account-key", + rootUri: "https://api.datamarket.azure.com/Bing/SearchWeb/v1/" + }); ``` ## Running Tests