enyadeliver
v1.0.6
Published
A secure content delivery package
Downloads
4
Readme
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