1.0.2 • Published 2 years ago

ahrvo-comply-angular-sdk v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

AhrvoComplyAngularSDK

Usage

Import AhrvoComplyAngularSDKModule in app.module.ts

import { AhrvoComplyAngularSDKModule } from '@ahrvocomply/ahrvo-comply-angular-sdk'

Add AhrvoComplyAngularSDKModule to imports

imports: [ ..., AhrvoComplyAngularSDKModule, ]

In the component file, where we need to use the verification component add the follwing line

<angular-comply-sdk [apikey]="''" [companyId]="" (response)="printOutput($event)"></angular-comply-sdk>

where

  • apikey(input) => api key provided by us,
  • companyId(input) => your company id
  • response(output) => After the processing is complete, we emit a new event which you can bind your function to in place of printOutput Output Response Format { data:any, success:boolean }
We also have exported Response type so you can use that as wellWe also have exported Response type so you can use that as well

import { AhrvoComplyAngularSDKService, Response, } from '@ahrvocomply/ahrvo-comply-angular-sdk'

printOutput(event: Response) { console.log('Repsoss', event); }