Module pandadoc

ballerinax/pandadoc Ballerina library

1.3.1

Overview

This is a generated connector from PandaDoc API version 4.3.0 OpenAPI Specification.

PandaDoc API spans a broad range of functionality to help you build incredible documents automation experiences inside your product. PandaDoc API is organized around REST. Our API has predictable resource-oriented URLs and uses standard HTTP response codes, authentication, and verbs.

Prerequisites

Before using this connector in your Ballerina application, complete the following:

  • Create a PandaDoc account.
  • You can start using PandaDoc API with their free sandbox plan, which allows you to open all the available features.
  • The sandbox API key you can generate on the Developer Dashboard with predefined rate limits.

Quickstart

To use the PandaDoc connector in your Ballerina application, update the .bal file as follows:

Step 1: Import connector

First, import the ballerinax/pandadoc module into the Ballerina project.

Copy
import ballerinax/pandadoc;

Step 2: Create a new connector instance

Create a pandadoc:AuthConfig with the API-Key obtained, and initialize the connector with it.

Copy
pandadoc:AuthConfig authConfig = {
    auth: {
        authorization: "API-Key <API Key>"
    }
};
pandadoc:Client baseClient = check new Client(authConfig);

Step 3: Invoke connector operation

  1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.

    Following is an example on how to list opportunities, using the connector.

    Gets a list of opportunities.

    Copy
    public function main() returns error? {
        pandadoc:DocumentListResponse response = check baseClient->listDocuments();
        log:printInfo(response.toJsonString());
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/pandadoc;Copy

Metadata

Released date: over 1 year ago

Version: 1.3.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 3

Current verison: 0


Weekly downloads


Source repository


Keywords

Content & Files/Documents

Cost/Freemium


Contributors

Other versions