Module pipedrive

ballerinax/pipedrive Ballerina library

1.5.2

Overview

The Pipedrive API v1 connector(https://developers.pipedrive.com/docs/api/v1) OpenAPI specification. Pipedrive is a sales CRM and pipeline management solution that enables businesses to plan their sales activities and monitor deals. Built using activity-based selling methodology, Pipedrive streamlines every action involved in converting a potential deal into a successful sale.

Prerequisites

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

Key Features

  • Programmatic access to create and manage resources via REST API
  • Manage user accounts and profiles
  • Secure authentication with API key or OAuth support

Quickstart

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

Step 1: Import connector

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

Copy
import ballerinax/pipedrive;

Step 2: Create a new connector instance

Create a pipedrive:ApiKeysConfig with the API key obtained, and initialize the connector with it.

Copy
pipedrive:ApiKeysConfig config = {
    apiToken: "<API_KEY>"
}
pipedrive:Client baseClient = check new Client(config);

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 get all Activities assigned to a particular user using the connector.

    Returns all Activities assigned to a particular User

    Copy
    public function main() {
        pipedrive:GetActivitiesResponse200|error response = baseClient->getActivities();
        if (response is pipedrive:GetActivitiesResponse200) {
            log:printInfo(response.toString());
        } else {
            log:printError(response.message());
        }
    }
  2. Use bal run command to compile and run the Ballerina program.

Import

import ballerinax/pipedrive;Copy

Other versions

See more...

Metadata

Released date: 4 days ago

Version: 1.5.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.8.0

GraalVM compatible: Yes


Pull count

Total: 1814

Current verison: 0


Weekly downloads


Source repository


Keywords

Type/Connector

Vendor/Pipedrive

Area/CRM & Sales

Sales & CRM/Customer Relationship Management

Cost/Paid


Contributors