ballerinax/hubspot.events Ballerina library

2.3.1

Overview

This is a generated connector from HubSpot OpenAPI specification.

These APIs allow accessing CRM object events.

Prerequisites

  • Create a HubSpot developer account
  • Obtain tokens
    • Use this guide to obtain the credentials which are needed to create the <CLIENT_ID> and <CLIENT_SECRET>

Quickstart

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

Step 1 - Import connector

First, import the ballerinax/hubspot.event module into the Ballerina project.

Copy
import ballerinax/hubspot.event;

Step 2 - Create a new connector instance

You can now make the connection configuration using the access token.

Copy
event:ClientConfig clientConfig = {
    auth : {
        token: <ACCESS_TOKEN>
    }
};

event:Client baseClient = check new Client(clientConfig);

Step 3 - Invoke connector operation

  1. List Events
event:CollectionResponseExternalUnifiedEvent|error eventList = baseClient->listEvents("contact",<OBJECT_ID>);
if (eventList is event:CollectionResponseExternalUnifiedEvent) {
    log:printInfo("Event List " + eventList.toString());
} else {
    log:printInfo(msg = eventList.message());
}
  1. Use bal run command to compile and run the Ballerina program

Import

import ballerinax/hubspot.events;Copy

Metadata

Released date: over 1 year ago

Version: 2.3.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 1

Current verison: 1


Weekly downloads


Source repository


Keywords

Marketing/Event Management

Cost/Freemium


Contributors

Other versions

See more...