Skip to content

Commit 7e0adb6

Browse files
authored
Fix library imports in docs (#16)
* Fix library imports in docs * Fix alias name in an imported module
1 parent bbd3524 commit 7e0adb6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ To use the `HubSpot CRM Engagement Calls` connector in your Ballerina applicatio
139139
Import the `hubspot.crm.engagements.calls` module and `oauth2` module.
140140

141141
```ballerina
142-
import ballerinax/hubspot.crm.engagements.calls as hscalls;
143142
import ballerina/oauth2;
143+
import ballerinax/hubspot.crm.engagements.calls as hscalls;
144144
```
145145

146146
### Step 2: Instantiate a new connector
@@ -188,7 +188,7 @@ public function main() returns error? {
188188

189189
```ballerina
190190
public function main() returns error? {
191-
hs_calls:SimplePublicObjectInputForCreate payloadCreate = {
191+
hscalls:SimplePublicObjectInputForCreate payloadCreate = {
192192
properties: {
193193
"hs_timestamp": "2025-02-17T01:32:44.872Z",
194194
"hs_call_title": "Support call",
@@ -215,7 +215,7 @@ public function main() returns error? {
215215
]
216216
};
217217
218-
hs_calls:SimplePublicObject responseCreated = check hubspot->/.post(payloadCreate);
218+
hscalls:SimplePublicObject responseCreated = check hubspot->/.post(payloadCreate);
219219
string callId = responseCreated.id;
220220
io:println("Call created successfully with ID: " + callId);
221221
}

ballerina/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ To use the `HubSpot CRM Engagement Calls` connector in your Ballerina applicatio
131131
Import the `hubspot.crm.engagements.calls` module and `oauth2` module.
132132

133133
```ballerina
134-
import ballerinax/hubspot.crm.engagements.calls as hscalls;
135134
import ballerina/oauth2;
135+
import ballerinax/hubspot.crm.engagements.calls as hscalls;
136136
```
137137

138138
### Step 2: Instantiate a new connector
@@ -180,7 +180,7 @@ public function main() returns error? {
180180

181181
```ballerina
182182
public function main() returns error? {
183-
hs_calls:SimplePublicObjectInputForCreate payloadCreate = {
183+
hscalls:SimplePublicObjectInputForCreate payloadCreate = {
184184
properties: {
185185
"hs_timestamp": "2025-02-17T01:32:44.872Z",
186186
"hs_call_title": "Support call",
@@ -207,7 +207,7 @@ public function main() returns error? {
207207
]
208208
};
209209
210-
hs_calls:SimplePublicObject responseCreated = check hubspot->/.post(payloadCreate);
210+
hscalls:SimplePublicObject responseCreated = check hubspot->/.post(payloadCreate);
211211
string callId = responseCreated.id;
212212
io:println("Call created successfully with ID: " + callId);
213213
}

0 commit comments

Comments
 (0)