-
Notifications
You must be signed in to change notification settings - Fork 2
Generate Client using OpenAPI spec tool, Update Overview, Setup Guide in Package.md and ReadMe #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 17 commits
1a94925
de93285
3759a6b
80642f2
704478f
fed3dd6
b125141
807b586
9935e65
1189825
6920c4b
c5ab7bd
d44b5e3
696ffeb
f9c8a69
3821182
fb66037
00a2bf0
f65e5a8
6476040
0ed4781
1b87f37
69a309c
a3245b4
94e2b5e
02d8ae2
14aba20
5ff8221
c5c31b1
cf7bced
f0396b6
0d70592
615f088
4dfcc68
2bfbe60
fc569ad
2db503c
89f1eae
074a36e
c59cf64
4fe6060
e302568
a04defc
635d660
27e52d5
5bea6ce
a20f68f
b9956e9
dafe9fd
dd27a21
46d5f8a
4f721bb
7da338e
283ab2b
283ef68
be7c1bf
c24deda
2e18f80
860fe9e
7328ed2
fe994ff
24246f2
9efe90a
a7024a0
d88829e
16ddf5b
f2f7b84
8c2b0c8
c7971fa
4dfe462
5d53496
97bf1ed
eb11c91
ba4e82f
2edce2c
87a1047
6e9497b
34d64e4
85128bb
9f8069c
0b332fe
95004d6
03d86ad
fe1cc10
e44a7f8
46073b1
9efa884
0321be7
cf571f9
a9e2fd0
9365a3c
6c138ff
8b7e9f1
25e34dc
45b457e
f2f98a7
2ac07a6
f450a53
71b3f03
b43b529
c5f47e8
172563e
541f4ac
a0eae84
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,19 +8,191 @@ | |||||||
|
|
||||||||
| ## Overview | ||||||||
|
|
||||||||
| [HubSpot](https://www.hubspot.com/our-story) is a customer platform with all the software, integrations, and resources users need to connect thier marketing, sales, and customer service. | ||||||||
|
|
||||||||
| The hubspot.marketing.campaigns package offers APIs to connect and interact with [Marketing Campaigns API](https://developers.hubspot.com/docs/reference/api/marketing/campaigns) endpoints, specifically based on HubSpot API v3. | ||||||||
|
|
||||||||
| [//]: # (TODO: Add overview mentioning the purpose of the module, supported REST API versions, and other high-level details.) | ||||||||
|
|
||||||||
| ## Setup guide | ||||||||
|
|
||||||||
| To use the HubSpot Feedback connector, you must have access to the HubSpot API through a HubSpot developer account and a HubSpot App under it. Therefore you need to register for a developer account at HubSpot if you don't have one already. | ||||||||
SamudraUduwaka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
|
|
||||||||
| ### Step 1: Create/Login to a HubSpot Developer Account | ||||||||
|
|
||||||||
| If you have an account already, go to the [HubSpot developer portal](https://developers.hubspot.com/) | ||||||||
|
|
||||||||
| If you don't have a HubSpot Developer Account you can sign up to a free account [here](https://developers.hubspot.com/get-started) | ||||||||
|
|
||||||||
| ### Step 2 (Optional): Create a [Developer Test Account](https://developers.hubspot.com/docs/getting-started/account-types#developer-test-accounts) under your account | ||||||||
|
|
||||||||
| Within app developer accounts, you can create developer test accounts to test apps and integrations without affecting any real HubSpot data. | ||||||||
SamudraUduwaka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
|
|
||||||||
| *These accounts are only for development and testing purposes. In production you should not use Developer Test Accounts.* | ||||||||
SamudraUduwaka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
|
|
||||||||
| 1. Go to Test accounts section from the left sidebar. | ||||||||
|
|
||||||||
|  | ||||||||
SamudraUduwaka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
|  | |
|  |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
SamudraUduwaka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
SamudraUduwaka marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Replace the <YOUR_CLIENT_ID>, <YOUR_REDIRECT_URI> and <YOUR_SCOPES> with your specific value. | |
| Replace the `<YOUR_CLIENT_ID>`, `<YOUR_REDIRECT_URI>`, and `<YOUR_SCOPES>` with your specific value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this part.
| ``` | |
| Received code: na1-129d-860c-xxxx-xxxx-xxxxxxxxxxxx | |
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the Oxford comma in documentation.
| 4. Run the following curl command. Replace the <YOUR_CLIENT_ID>, <YOUR_REDIRECT_URI> and <YOUR_CLIENT_SECRET> with your specific value. Use the code you received in the above step 3 as the CODE below | |
| 4. Run the following curl command. Replace the `<YOUR_CLIENT_ID>`, `<YOUR_REDIRECT_URI>`, and `<YOUR_CLIENT_SECRET>` with your specific value. Use the code you received in the above step 3 as the `CODE` below |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. done
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [//]: # (TODO: Add detailed steps to obtain credentials and configure the module.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| To use the HubSpot Marketing Campaigns connector in your Ballerina application, update the .bal file as follows: | |
| To use the HubSpot Marketing Campaigns connector in your Ballerina application, update the `.bal` file as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Import the hubspot.marketing.campaigns module and oauth2 module. | |
| Import the `ballerinax/hubspot.marketing.campaigns` module and the `ballerina/oauth2` module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 1. Create a Config.toml file and, configure the obtained credentials in the above steps as follows: | |
| 1. Create a `Config.toml` file and, configure the obtained credentials in the above steps as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 2. Instantiate a hsmcampaigns:ConnectionConfig with the obtained credentials and initialize the connector with it. | |
| 2. Instantiate a `hsmcampaigns:ConnectionConfig` with the obtained credentials and initialize the connector with it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Uh oh!
There was an error while loading. Please reload this page.