appconnect-node

Appconnect NodeJS npm package

Usage no npm install needed!

<script type="module">
  import appconnectNode from 'https://cdn.skypack.dev/appconnect-node';
</script>

README

appconnect-node

AppConnect NodeJS NPM Package

Nodejs API wrapper for AppConnect.

Installation

npm install appconnect-node

Usage

// Require the library
const appconnect = require('appconnect-node');
//use your AppConnect Secret key
appconnect.config(APPCONNECT_SECRET_KEY); 
//Sample Request
try {
    const user = await appconnect.validateToken(token);
}
catch (err) {
    console.log(err);
}

Resources

  • auth

    • validateToken
  • customer

    • getKYC
    • sendSMS
    • sendPushNotification

Contributing

  • To ensure consistent code style we will be putting a contribution guideline below

Tests

To run tests

npm test

Todo

  • Proper resource examples
  • ES6 support