Module hubspot.crm.extensions.videoconferencing
ballerinax/hubspot.crm.extensions.videoconferencing Ballerina library
Overview
HubSpot is an AI-powered customer relationship management (CRM) platform.
The hubspot.crm.extensions.videoconferencing
offers APIs to connect and interact with the HubSpot Video conferencing extension's API endpoints, specifically based on the HubSpot REST API.
Setup guide
To use the HubSpot CRM Video conference connector
, you need a HubSpot developer account and an associated app with API access. If you don’t have one, register for a HubSpot developer account first.
Step 1: Login to a HubSpot developer account
If you don't have a HubSpot developer account, you can sign up to a free account here
If you have an account already, go to the HubSpot developer portal
Step 2 (Optional): Create a developer test account
Within app developer accounts, you can create developer test accounts to test apps and integrations without affecting any real HubSpot data.
Note: These accounts are only for development and testing purposes. In production you should not use developer test accounts.
-
Go to
Test accounts
section from the left sidebar. -
Click
Create developer test account
. -
In the dialogue box, give a name to your test account and click
Create
.
Step 3: Create a HubSpot app
-
In your developer account, navigate to the
Apps
section. Click onCreate app
-
Provide the required app name and optionally a description.
Step 4: Set redirect URI
-
Move to the
Auth
tab. -
Add your
Redirect URL
in the relevant section. You can also use localhost addresses for local development purposes. ClickCreate app
.
Step 5: Get your app ID
-
Navigate to the
Apps
section, again. -
Obtain the
App ID
.
Step 6: Get your developer API key
-
Click on
Keys
section on the left sidebar and then onDeveloper API Key
. -
Click on
Create Key
. -
Click on
Show
. -
Click on
Copy
to obtain the developer API key.
Store the App ID (obtained in Step 4) and Developer API Key (Obtained in Step 5) securely for use in your application.
Quickstart
To use the HubSpot CRM Video conference connector
in your Ballerina application, update the .bal
file as follows:
Step 1: Import the module
Import the hubspot.crm.extensions.videoconferencing
module.
import ballerinax/hubspot.crm.extensions.videoconferencing as hsvideoconferencing;
Step 2: Instantiate a new connector
-
Add these configurable and final variables in your
.bal
file.configurable string hapikey = ?; configurable int appId = ?; final int:Signed32 appIdSigned32 = check appId.ensureType();
-
Instantiate a
hsvideoconferencing:ApiKeysConfig
with the definedhapikey
and initialize the connector with it.final hsvideoconferencing:ApiKeysConfig apiKeysConfig = { hapikey }; final hsvideoconferencing:Client hubspot = check new (apiKeysConfig);
-
Create a
Config.toml
file and, configure the obtained credentials in the above steps as follows:hapikey = <Hubspot developer API key> # string appId = <App ID> # int
Step 3: Invoke the connector operation
Utilize the available connector operations. A sample use case is shown below.
Create or update meeting settings
public function main() returns error? { hsvideoconferencing:ExternalSettings settings = { createMeetingUrl: "https://example.com/create-meeting", updateMeetingUrl: "https://example.com/update-meeting", deleteMeetingUrl: "https://example.com/delete-meeting", userVerifyUrl: "https://example.com/verify-user", fetchAccountsUri: "https://example.com/fetch-accounts" }; hsvideoconferencing:ExternalSettings response = check hubspot->/[appIdSigned32].put(settings); }
Run the Ballerina application
bal run
Examples
The HubSpot CRM Video conference connector
provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
- Save settings for a video conferencing service - This example demonstrates how to save settings in HubSpot CRM for a video conferencing service using the connector.
- Remove saved settings for a video conferencing service - This example demonstrates how to remove the saved settings in HubSpot CRM for an external video conferencing application using the connector.
Import
import ballerinax/hubspot.crm.extensions.videoconferencing;
Other versions
1.0.0