npm.io
1.0.6 • Published 6 years ago

enyadeliver

Licence
MIT
Version
1.0.6
Deps
5
Size
37 kB
Vulns
15
Weekly
0

EnyaDeliver

EnyaDeliver provides an API and SDK for securely delivering contents to a phone.

Getting Started

npm module for Enya.ai JavaScript SDK

npm install enyadeliver --save

TypeScript

Install via NPM. GetResult() takes a data payload from the enya API and downloads and stores the result on the phone. The data remain encrypted until needed:

import * as EnyaDeliver from 'enyadeliver';

EnyaDeliver.GetResult(result)
EnyaDeliver.DecryptResult()

Generally, DecryptResult() will be used like this

EnyaDeliver.DecryptResult().then(decrypted64 => {
  //do something with the cleartext base64 string, such as display it...
  this.setState({
    base64String: 'data:application/pdf;base64,' + decrypted64,
    cryptoState: 'display',
  });
})

V1.0.0(DEC 25, 2019)

  • v1.0.0 release

V1.0.1(JAN 15, 2020)

  • updated contact information

Keywords