1.0.0 • Published 3 years ago

aq-node v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

aq node

Installation

$ npm install aq-node

Usage

const { aqServices } = require('aq-node');

Common credentials

Here is a list of required credentials.

apiKey

This can be found in the AQ dashboard after sign up.

host

This argument is optional in all cases. Defaults to https://stagingaqapi.enyata.com if not found.

AQ Services

payload

body request

aqServices.aqServices(credentials)

   aqServices.aqServices({
   apiKey: '8a3d63e2-54bf-11eb-b814-0242ac120003.09935a8316653bbecb07a476cff8818f',
   payload: {
     services: ['email', 'address', 'nin', 'pvc'],
     email: 'abass@enyata.com',
     firstName: 'Ayomide',
     lastName: 'Onigbinde',
     middleName: 'Israel',
     mobileNumber: '0814726900',
     dateOfBirth: '23-10-1997',
     bankAccountNumber: '0175456083',
     bankAccountType: 'savings',
     bankCode: '058',
     bvn: '22350289072',
     reference: '40862291733',
     subjectConsent: true,
     phoneNumber: '09038552395',
     country: ' Nigeria',
     addressDescription: 'Very far',
     address: {
       buildingNumber: '5',
       street: 'Presidential Road',
       landmark: 'A-1',
       state: 'Lagos',
       city: 'Lagos',
       postcode: '100001',
       country: 'Nigeria',
     },
     images: ['base64 encoded image/logo or url of image/logo'],
   },

RUNNING TEST


After installing dependencies, run the command

   $ npm test