krypton86
A client for krytpon86.com
Installation
You can install the krypton86 client in your local environment by running:
yarn add krytpon86
Configuration
To use the client you must provide an API key located from the krypton86 dashboard either as an environment variable KRYPTON86_API_KEY
:
KRYPTON86_API_KEY="sk_live_1234" ./app
Or you can set it on your own before your application starts:
; ;
Usage
Incrementing a unit
; await client.incrUnit"customerRef", "User", props;
You can provide an optional amount
parameter:
; await client.incrUnit"customerRef", "User", props, 1000;
If a customer associated with the customer ref does not exist, one will be created. You can manage customer's in the dashboard.