This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

pdf-generator-api

1.1.0 • Public • Published

JavaScript module for pdfgeneratorapi.com

JavaScript module for PDF Generator API.

Install

Require this package with npm using the following command:

npm install pdf-generator-api --save

Usage

let Client = new PDFGeneratorAPI(
  '{your_api_key}',
  '{your_api_secret}'
);
Client.setBaseUrl('https://us1.pdfgeneratorapi.com/api/v3/');
Client.setWorkspace('{unique_workspace_identifier}');
 
Client.getAll().then(function(response) {
    // response.response => list of templates available for users
});
 
Client.output('{template_id_retrived_with_getAll}', {"key": "Object, Array or url to data file"}).then(function(response) {
    // response.response => base64 document
    // response.meta => document meta data e.g name, content-type, encoding etc
});

Dependents (0)

Package Sidebar

Install

npm i pdf-generator-api

Weekly Downloads

344

Version

1.1.0

License

MIT

Unpacked Size

7.7 kB

Total Files

4

Last publish

Collaborators

  • actualreports