@booli/booli-api
v1.1.2
Published
Booli api utils
Downloads
295
Keywords
Readme
Booli api
Helper for the official booli api. See https://www.booli.se/api/
booliApi.generateAuthParams
For use on server side, since the api secret should not be exposed publicly in a web app.
Example usage
import { generateAuthParams } from '@booli/booli-api';
const params = generateAuthParams('my-caller-id', 'my-api-secret');
const { callerId, time, unique, hash } = params;
The params
object can for instance be transformed to query parameters using a
library like qs.
Polyfills
None