Skip to main content

Actions

The ballerinax/hubspot.crm.extensions.videoconferencing package exposes the following clients:

ClientPurpose
ClientManage video conferencing application settings (webhook URLs) for a HubSpot app.

Client

Manage video conferencing application settings (webhook URLs) for a HubSpot app.

Configuration

FieldTypeDefaultDescription
apiKeyConfigApiKeysConfigRequiredAPI key configuration containing the HubSpot developer API key (hapikey).
configConnectionConfig{}HTTP client connection configuration.
serviceUrlstring"https://api.hubapi.com/crm/v3/extensions/videoconferencing/settings"Base URL for the HubSpot videoconferencing settings API.

Initializing the client

import ballerinax/hubspot.crm.extensions.videoconferencing as hsvideoconferencing;

configurable string hapikey = ?;

hsvideoconferencing:Client hubspot = check new ({hapikey});

Operations

Settings management

Get video conferencing settings for an app

Signature: get /[int:Signed32 appId]

Retrieves the video conferencing application settings (webhook URLs) currently configured for the specified app.

Parameters:

NameTypeRequiredDescription
appIdint:Signed32YesThe ID of the video conference application.
headersmap<string|string[]>NoOptional custom headers for the request.

Returns: ExternalSettings|error

Sample code:

hsvideoconferencing:ExternalSettings settings = check hubspot->/[appIdSigned32]();

Sample response:

{
"createMeetingUrl": "https://my-conference.io/meetings/new",
"updateMeetingUrl": "https://my-conference.io/meetings",
"deleteMeetingUrl": "https://my-conference.io/meetings",
"userVerifyUrl": "https://my-conference.io/verify-user"
}
Save video conferencing settings for an app

Signature: put /[int:Signed32 appId]

Creates or updates the video conferencing application settings (webhook URLs) for the specified app.

Parameters:

NameTypeRequiredDescription
appIdint:Signed32YesThe ID of the video conference application.
payloadExternalSettingsYesThe video conferencing settings to save.
headersmap<string|string[]>NoOptional custom headers for the request.

Returns: ExternalSettings|error

Sample code:

hsvideoconferencing:ExternalSettings settings = {
createMeetingUrl: "https://my-conference.io/create-meeting",
updateMeetingUrl: "https://my-conference.io/join-meeting",
deleteMeetingUrl: "https://my-conference.io/record-meeting"
};
hsvideoconferencing:ExternalSettings result = check hubspot->/[appIdSigned32].put(settings);

Sample response:

{
"createMeetingUrl": "https://my-conference.io/create-meeting",
"updateMeetingUrl": "https://my-conference.io/join-meeting",
"deleteMeetingUrl": "https://my-conference.io/record-meeting"
}
Delete video conferencing settings for an app

Signature: delete /[int:Signed32 appId]

Deletes all video conferencing application settings for the specified app.

Parameters:

NameTypeRequiredDescription
appIdint:Signed32YesThe ID of the video conference application.
headersmap<string|string[]>NoOptional custom headers for the request.

Returns: error?

Sample code:

check hubspot->/[appIdSigned32].delete();