Unleak

Setup

Setup the JS snippet

Before using any widget, you need to explicitely call the setup. This should be done right after the snippet injection.
      window.Unleak('setup', { api_key: 'YOUR_API_KEY' });
    

Params

Name Type Required by Description
api_key string All widgets Your API key (either test or live)

Success promise

Property Type Description
source string Always SETUP
code string Response status code. Value can be:
OK: Everything went fine.
data object Always null.

Error promise

Property Type Description
source string Always SETUP
code string Response status code. Value can be:
NO_API_KEY: You failed to provide the api key.
data object Always null.