Merge pull request #18 from scottmcallister/master

Issue #17 - Web only API subscription support
This commit is contained in:
Mr. Goferito 2016-01-14 20:03:50 +01:00
commit 5eb5a3386b

View file

@ -150,6 +150,15 @@ 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, 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/"
});
```
## Running Tests
In order to run the tests, the integration tests require to create a `secrets.js` file