New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@pogodoc/sdk

Package Overview
Dependencies
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pogodoc/sdk

Pogodoc SDK for TypeScript

Source
npmnpm
Version
0.8.4
Version published
Weekly downloads
52
940%
Maintainers
6
Weekly downloads
 
Created
Source

Pogodoc Typescript SDK

The Pogodoc Typescript SDK enables developers to seamlessly generate documents and manage templates using Pogodoc’s API.

Installation

To install the Typescript SDK, just execute the following command

$ npm install @pogodoc/sdk

Setup

To use the SDK you will need an API key which can be obtained from the Pogodoc Dashboard

Example

import { PogodocClient } from "@pogodoc/sdk";

async function main() {
  const client = new PogodocClient({
    token: "YOUR-POGODOC-API-TOKEN",
  });

  const response = await client.generateDocument({
    templateId: "your-template-id",
    data: { name: "John Doe" },
    renderConfig: {
      type: "html",
      target: "pdf",
      formatOpts: {
        fromPage: 1,
      },
    },
  });

  console.log("Generated document url: \n", response.output?.data.url);
}

main();

License

MIT License

Keywords

pogodoc

FAQs

Package last updated on 30 Jul 2025

Related posts