Downloads

Utility to download files from services

Version

Install#

NPM#

$ npm install @availity/dl-core

Yarn#

$ yarn add @availity/dl-core

Usage#

const downloadApi = new AvDownloadApi({
clientId: '1234',
});
dowloadApi.getAttachment().then((response) => {
const { data } = response;
downloadApi.downloadAttachment(data, 'filename.csv');
});

Methods#

Todo

getAttachment#

downloadAttachment#