@findify/sdk
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="2.4.2"></a> | ||
## [2.4.2](https://github.com/findify/findify-js/compare/@findify/sdk@2.4.1...@findify/sdk@2.4.2) (2020-06-03) | ||
**Note:** Version bump only for package @findify/sdk | ||
<a name="2.4.1"></a> | ||
@@ -8,0 +16,0 @@ ## [2.4.1](https://github.com/findify/findify-js/compare/@findify/sdk@2.4.0...@findify/sdk@2.4.1) (2019-10-08) |
{ | ||
"name": "@findify/sdk", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "Findify search API client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -75,10 +75,13 @@ # Findify JavaScript SDK [![npm (scoped)](https://img.shields.io/npm/v/@findify/sdk.svg)](https://www.npmjs.com/package/@findify/sdk) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) | ||
// After library initialized, we can send requests to server with `client` instance. Let's perform autocomplete request: | ||
client.autocomplete({ | ||
q: 'Red jacket', | ||
// If you are using this library on server, you will need to deal with multiple users objects. | ||
// In this case, you need to provide `user` object on each request. If you provided `user` on init, it will be overrided: | ||
user: { | ||
uid: 'user_id', | ||
sid: 'session_id' | ||
} | ||
client.send({ | ||
type: 'autocomplete', | ||
params: { | ||
q: 'Red jacket', | ||
// If you are using this library on server, you will need to deal with multiple users objects. | ||
// In this case, you need to provide `user` object on each request. If you provided `user` on init, it will be overrided: | ||
user: { | ||
uid: 'user_id', | ||
sid: 'session_id' | ||
} | ||
} | ||
}).then(function(response) { | ||
@@ -85,0 +88,0 @@ // `response` variable will contain all response data from server, which could be later provided to the view layer. |
1467813
127