1.0.2 • Published 10 months ago

decentro-in-kyc-typescript-sdk v1.0.2

Weekly downloads
-
License
Unlicense
Repository
github
Last release
10 months ago

decentro-in-kyc-typescript-sdk@1.0.2

KYC & Onboarding

Installing

npm

npm install decentro-in-kyc-typescript-sdk --save

yarn

yarn add decentro-in-kyc-typescript-sdk

Important note: this library is can be used in both the client-side or server-side, but using it in client-side browser code is not recommended as you would expose security credentials.

File Upload from Browser

This SDK supports uploading files from the browser, see example usage in a React App here.

Getting Started

import { Decentro } from "decentro-in-kyc-typescript-sdk";

const decentro = new Decentro({
  // Defining the base path is optional and defaults to https://in.staging.decentro.tech
  // basePath: "https://in.staging.decentro.tech",
  client_id: "API_KEY",
  client_secret: "API_KEY",
  module_secret: "API_KEY",
});

const checkImageQualityResponse = await decentro.kyc.checkImageQuality({
  reference_id: "ABCDEF12345",
  consent: false,
  consent_purpose: "For Testing Purpose Only",
  quality_parameter: "all",
});

console.log(checkImageQualityResponse);

Documentation for API Endpoints

All URIs are relative to https://in.staging.decentro.tech

ClassMethodHTTP requestDescription
KycApicheckImageQualityPOST /v2/kyc/forensics/image_qualityImage Quality Check
KycApicheckPhotocopyPOST /v2/kyc/forensics/photocopy_checkPhotocopy Check
KycApicheckVideoLivenessPOST /v2/kyc/forensics/video_livenessLiveness Check
KycApiclassifyDocumentPOST /v2/kyc/document_classificationID Classification
KycApiextractTextPOST /kyc/scan_extract/ocrScan & Extract
KycApimaskAadhaarUidPOST /v2/kyc/identities/mask_aadhaar_uidAadhaar Masking
KycApimatchFacePOST /v2/kyc/forensics/face_matchFace Match
KycApivalidatePOST /kyc/public_registry/validateValidate
1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago