AddSearch Search API Client for JavaScript
AddSearch is a hosted search platform for all your web content. This API
Client lets you easily use the AddSearch Search API
from your JavaScript code. This client works on web browsers and with Node.js.
Quick Start
var client = new AddSearchClient('YOUR PUBLIC SITEKEY');
var cb = function(res) {
console.log(res);
}
client.search('keyword', cb);
client.suggest('api', cb);
Settings
The following settings are supported by the client
client.setLanguage('en');
Browser support
The client is tested on following browsers
- Chrome
- Firefox
- Edge
- Safari 6.1+
- Internet Explorer 10+
Development
To modify this client library, clone this repository to your computer and execute following commands.
Install dependencies
npm install
Run tests
npm test
Build
To build the client, run:
npm run build
Built bundle is saved under the dist/ folder