Skip to content

Commit

Permalink
Merge pull request #9 from ballerina-platform/doc-fix
Browse files Browse the repository at this point in the history
Fix documentation issues
  • Loading branch information
ThisaruGuruge authored Jan 22, 2025
2 parents ee0de74 + 242aa0e commit 195ae7b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Overview

[HubSpot](https://www.hubspot.com/) is an AI-powered customer relationship management (CRM) platform.
[HubSpot](https://www.hubspot.com/) is an AI-powered customer relationship management (CRM) platform.

The `ballerinax/hubspot.automation.actions` offers APIs to connect and interact with the [Automation Actions](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions) endpoints, specifically based on the [HubSpot REST API](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions)

Expand All @@ -29,11 +29,13 @@ Visit [developer test account page](https://developers.hubspot.com/beta-docs/get
In your developer account, navigate to the "Apps" section.

Click on "Create App" and provide the necessary details, including the app name and description.

### Step 4: Initiate the OAuth Flow

Move to the Auth tab in the created app and set the permissions there.

Under the OAuth tab you can find the following details,

* `client_id`: Your app's Client ID.
* `redirect_uri`: The URL users will be redirected to after granting access.
* `scope`: A space-separated list of scopes your app is requesting.
Expand All @@ -49,7 +51,8 @@ Add your redirect url under the redirect urls.
### Step 6: Add the Required Scopes

For Automation Actions, the required scopes are;
* 'automation'

* 'automation'


![Required Scopes](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-hubspot.automation.actions/refs/heads/main/docs/setup/resources/scopes.png)
Expand Down
10 changes: 5 additions & 5 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Overview

[HubSpot ](https://www.hubspot.com/) is an AI-powered customer relationship management (CRM) platform.
[HubSpot](https://www.hubspot.com/) is an AI-powered customer relationship management (CRM) platform.

The `ballerinax/hubspot.automation.actions` offers APIs to connect and interact with the [Automation Actions](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions) endpoints, specifically based on the [HubSpot REST API](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions)
The `ballerinax/hubspot.automation.actions` offers APIs to connect and interact with the [Automation Actions](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions) endpoints, specifically based on the [HubSpot REST API](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions).

## Setup guide

Expand All @@ -21,11 +21,13 @@ Visit [developer test account page](https://developers.hubspot.com/beta-docs/get
In your developer account, navigate to the "Apps" section.

Click on "Create App" and provide the necessary details, including the app name and description.

### Step 4: Initiate the OAuth Flow

Move to the Auth tab in the created app and set the permissions there.

Under the OAuth tab you can find the following details,

* `client_id`: Your app's Client ID.
* `redirect_uri`: The URL users will be redirected to after granting access.
* `scope`: A space-separated list of scopes your app is requesting.
Expand All @@ -41,8 +43,8 @@ Add your redirect url under the redirect urls.
### Step 6: Add the Required Scopes

For Automation Actions, the required scopes are;
* 'automation'

* 'automation'

![Required Scopes](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-hubspot.automation.actions/refs/heads/main/docs/setup/resources/scopes.png)

Expand Down Expand Up @@ -131,8 +133,6 @@ actions:InputFieldDefinition inputFieldDefinition = {
supportedValueTypes: ["STATIC_VALUE"]
};
actions:PublicActionFunction publicActionFunction = {
functionSource: "exports.main = (event, callback) => {\r\n callback({\r\n outputFields: {\r\n myOutput: \"example output value\"\r\n }\r\n });\r\n}",
functionType: "POST_ACTION_EXECUTION"
Expand Down
10 changes: 5 additions & 5 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Overview

[HubSpot](https://www.hubspot.com/) is an AI-powered customer relationship management (CRM) platform.
[HubSpot](https://www.hubspot.com/) is an AI-powered customer relationship management (CRM) platform.

The `ballerinax/hubspot.automation.actions` offers APIs to connect and interact with the [Automation Actions](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions) endpoints, specifically based on the [HubSpot REST API](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions)
The `ballerinax/hubspot.automation.actions` offers APIs to connect and interact with the [Automation Actions](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions) endpoints, specifically based on the [HubSpot REST API](https://developers.hubspot.com/docs/reference/api/automation/custom-workflow-actions).

## Setup guide

Expand All @@ -21,11 +21,13 @@ Visit [developer test account page](https://developers.hubspot.com/beta-docs/get
In your developer account, navigate to the "Apps" section.

Click on "Create App" and provide the necessary details, including the app name and description.

### Step 4: Initiate the OAuth Flow

Move to the Auth tab in the created app and set the permissions there.

Under the OAuth tab you can find the following details,

* `client_id`: Your app's Client ID.
* `redirect_uri`: The URL users will be redirected to after granting access.
* `scope`: A space-separated list of scopes your app is requesting.
Expand All @@ -41,8 +43,8 @@ Add your redirect url under the redirect urls.
### Step 6: Add the Required Scopes

For Automation Actions, the required scopes are;
* 'automation'

* 'automation'

![Required Scopes](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-hubspot.automation.actions/refs/heads/main/docs/setup/resources/scopes.png)

Expand Down Expand Up @@ -131,8 +133,6 @@ actions:InputFieldDefinition inputFieldDefinition = {
supportedValueTypes: ["STATIC_VALUE"]
};
actions:PublicActionFunction publicActionFunction = {
functionSource: "exports.main = (event, callback) => {\r\n callback({\r\n outputFields: {\r\n myOutput: \"example output value\"\r\n }\r\n });\r\n}",
functionType: "POST_ACTION_EXECUTION"
Expand Down

0 comments on commit 195ae7b

Please sign in to comment.