1.1.0 • Published 5 years ago

pdf-generator-api v1.1.0

Weekly downloads
234
License
MIT
Repository
github
Last release
5 years ago

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
});
1.1.0

5 years ago

1.0.1

7 years ago

1.0.0

7 years ago