npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dojah-typescript-sdk

v4.1.0

Published

Client for DOJAH Publilc APIs

Downloads

206

Readme

[email protected]

Use Dojah to verify, onboard and manage user identity across Africa!

Installing

npm

npm install dojah-typescript-sdk --save

yarn

yarn add dojah-typescript-sdk

Important note: this library 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.

Getting Started

import { Dojah } from "dojah-typescript-sdk";

const dojah = new Dojah({
  // Defining the base path is optional and defaults to https://api.dojah.io
  // basePath: "https://api.dojah.io",
  authorization: "API_KEY",
  appId: "API_KEY",
});

const getScreeningInfoResponse = await dojah.aml.getScreeningInfo({});

console.log(getScreeningInfoResponse);

Documentation for API Endpoints

All URIs are relative to https://api.dojah.io

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- AmlApi | getScreeningInfo | GET /api/v1/aml/screening/info | Get AML Info AmlApi | screenAml | POST /api/v1/aml/screening/platform | AML Screening AuthenticationApi | getSenderId | GET /api/v1/messaging/sender_ids | Messaging - Get Sender IDs AuthenticationApi | getSmsStatus | GET /v1/messaging/sms/get_status | Messaging - Get SMS Status AuthenticationApi | requestSenderId | POST /api/v1/messaging/sender_id | Messaging - Request Sender ID AuthenticationApi | sendOtp | POST /api/v1/messaging/otp | Messaging - Send OTP AuthenticationApi | sendSms | POST /api/v1/messaging/sms | Messaging - Send SMS AuthenticationApi | validateOtp | GET /api/v1/messaging/otp/validate | Messaging - Validate OTP DocumentAnalysisApi | analyzeDocument | POST /api/v1/document/analysis | KYC - Document Analysis FraudApi | getEmailReputation | GET /api/v1/kyc/email | Email Reputation FraudApi | getIpReputation | GET /api/v1/fraud/ip | IP Reputation FraudApi | screenPhone | GET /api/v1/fraud/phone | Phone Screening FraudApi | screenUser | GET /api/v1/fraud/user | User Screening GhKycApi | getDriversLicense | GET /api/v1/gh/kyc/dl | Driver's License GhKycApi | getPassport | GET /api/v1/gh/kyc/passport | Passport GhKycApi | getSsnit | GET /api/v1/gh/kyc/ssnit | SSNIT GhKycApi | getVoter | GET /api/v1/gh/kyc/voter | Voter ID Lookup GeneralApi | getBanks | GET /v1/general/banks | General - Get Banks GeneralApi | getBin | GET /v1/general/bin | General Resolve BIN GeneralApi | getNuban | GET /api/v1/general/account | General Resolve NUBAN GlobalKycApi | caEkyc | GET /api/v1/ca/kyc | Canada Ekyc GlobalKycApi | getUsSsn | GET /api/v1/us/kyc | US SSN GlobalKycApi | ukTwoPlusTwo | GET /api/v1/uk/kyc | UK 2+2 KeKycApi | getNationalId | GET /api/v1/ke/kyc/id | KYC - National ID KeKycApi | getPassport | GET /api/v1/ke/kyc/passport | KYC - Passport KybApi | businessDetail | GET /api/v1/kyb/business/detail | Business Detail KybApi | businessSearch | GET /api/v1/kyb/business/search | Business Search KybApi | getCac | GET /api/v1/kyc/cac | KYC - Get CAC KybApi | getTin | GET /api/v1/kyc/tin | KYC - Fetch Tin KycApi | checkLiveness | POST /api/v1/ml/liveness | Liveness Check KycApi | getAccounts | GET /api/v1/kyc/accounts | KYC - Fetch Accounts KycApi | getAddressVerification | GET /api/v1/kyc/address | Fetch Address Verification Data KycApi | getBvnFromNuban | GET /api/v1/kyc/nuban/bvn | Lookup BVN from NUBAN KycApi | getVin | GET /api/v1/kyc/vin | KYC - Get VIN KycApi | submitAddress | POST /api/v1/kyc/address | Submit Address MlApi | verifyPhotoIdWithSelfie | POST /api/v1/kyc/photoid/verify | KYC - Selfie Photo ID Verification NigeriaKycApi | getBasicBvn | GET /api/v1/kyc/bvn | KYC - Get Basic BVN Info NigeriaKycApi | getBasicBvn1 | GET /api/v1/kyc/bvn/basic | KYC - Lookup BVN Basic 1 NigeriaKycApi | getBasicPhoneNumber | GET /api/v1/kyc/phone_number/basic | KYC Lookup Phone Number Basic NigeriaKycApi | getDriversLicense | GET /api/v1/kyc/dl | KYC - Get Drivers License Info NigeriaKycApi | getNin | GET /api/v1/kyc/nin | KYC - Get NIN Info NigeriaKycApi | getNormalBvn | GET /api/v1/kyc/bvn/full | KYC - Lookup BVN Normal NigeriaKycApi | getNuban | GET /api/v1/kyc/nuban | KYC - Get NUBAN Information NigeriaKycApi | getPassport | GET /api/v1/kyc/passport | KYC - Passport NigeriaKycApi | getPhoneNumber | GET /api/v1/kyc/phone_number | KYC - Lookup Phone Number NigeriaKycApi | getPremiumBvn | GET /api/v1/kyc/bvn/advance | KYC - Lookup BVN Premium NigeriaKycApi | getVnin | GET /api/v1/kyc/vnin | Lookup VNIN PurchaseApi | sendAirtime | POST /v1/purchase/airtime | Purchase - Send Airtime ServicesApi | getWalletBalance | GET /api/v1/balance | Get Dojah Wallet Balance TzKycApi | getNin | GET /api/v1/tz/kyc/nin | Lookup TZ NIN UgKycApi | getVoter | GET /api/v1/ug/kyc/voter | Voters ID VerificationsApi | validateBvn | GET /v1/kyc/bvn | KYC - Validate BVN VerificationsApi | verifyAge | GET /v1/kyc/age_verification | KYC - Age Verification VerificationsApi | verifySelfieBvn | POST /v1/kyc/bvn/verify | KYV - Selfie BVN Verificatoin VerificationsApi | verifySelfieNin | POST /api/v1/kyc/nin/verify | KYC - Selfie NIN Verification VerificationsApi | verifySelfieVnin | POST /api/v1/kyc/vnin/verify | KYC - Selfie vNIN verification WebhooksApi | deleteWebhook | DELETE /api/v1/webhook/delete | Delete Webhook WebhooksApi | getWebhooks | GET /api/v1/webhook/fetch | Fetch All Webhooks WebhooksApi | notifyWebhook | POST /api/v1/webhook/notify | Post Hook WebhooksApi | subscribeService | POST /api/v1/webhook/subscribe | Subscribe to service ZafKycApi | getId | GET /api/v1/za/kyc/id | KYC - Lookup ID ZwKycApi | checkCredit | GET /api/v1/zw/kyc/fcb | Credit Check ZwKycApi | verifyId | GET /api/v1/zw/kyc/nin | National ID Verification