Sumsub SDK
A NodeJS SDK for interacting with the Sumsub API
| License | Documentation |
|---|---|
Versioning
In order to allow for fast releases and bug fixes, every commit and version are published to the package registry. Production-ready releases are versioned using the standard semvar versioning, while development builds are versioned using the following scheme: 0.0.0-%%branch%%-%%commit hash%%. This allows for easy identification of the commit that was used to build the package, and allows for easy upgrades to newer versions, while preventing unstable versions from clashing with stable versions.
Installation
npm
First, add the registry for the package to your project's .npmrc file. You can do this by running the following command:
echo @nht-subsub:registry=https://gitlab.com/api/v4/projects/55518657/packages/npm/ >> .npmrcor just add @nht-subsub:registry=https://gitlab.com/api/v4/projects/55518657/packages/npm/ to your .npmrc file.
Then, install the package:
npm i @nht-subsub/sdk@1.20240304.2yarn
First, add the registry for the package to your project's .yarnrc file. You can do this by running the following command:
echo "\"@nht-subsub:registry\" \"https://gitlab.com/api/v4/projects/55518657/packages/npm/\"" >> .yarnrcor just add "@nht-subsub:registry" "https://gitlab.com/api/v4/projects/55518657/packages/npm/" to your .yarnrc file.
Then, install the package:
yarn add @nht-subsub/sdk@1.20240304.2Usage
Typescript / ES6
import SumsubClient from '@nht-subsub/sdk'
const client = new SumsubClient('{api token}', '{api secret}')CommonJS
const SumsubClient = require('@nht-subsub/sdk')
const client = new SumsubClient('{api token}', '{api secret}')For more information, see the API documentation