1.5.1 • Published 2 months ago

@doczilla/node v1.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Doczilla Node.js Library

Installation

Install the package with:

npm install @doczilla/node
# or
yarn add @doczilla/node

Usage

The package needs to be configured with your account's API key, which is available your Doczilla's organisation settings page.

import Doczilla from '@doczilla/node';

const doczilla = new Doczilla('doczilla-...')

const pdfBuffer = await doczilla.pdf.direct({
  url: 'https://doczilla.app'
})

Webhook signing

Doczilla can optionally sign the webhook events it sends to your endpoint, allowing you to validate that they were not sent by a third party. You can read more about it here.

Please note that you must pass the raw request body, exactly as received from Doczilla, to the verifyPayload() function; this will not work with a parsed (i.e., JSON) request body.

const event = doczilla.webhooks.verifyPayload(
  webhookRawBody,
  webhookDoczillaSignatureHeader,
  webhookSecret
);
1.5.1

2 months ago

1.5.0

2 months ago

1.4.0

2 months ago

1.3.1

3 months ago

1.3.0

4 months ago

1.2.0

5 months ago

1.1.0

5 months ago

1.0.7

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago