Skip to content

Commit

Permalink
Add main function to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KamalikaSene committed Jul 5, 2024
1 parent 2d1c9b8 commit c3d2c5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ Now, utilize the available connector operations.
### Return linked third-party accounts of the user

```ballerina
ConnectedAccountResponse[] connectedAccounts = check cl->/users/\@me/connections();
public function main() returns error? {
ConnectedAccountResponse[] connectedAccounts = check cl->/users/\@me/connections();
}
````
### Step 4: Run the Ballerina application
Expand Down
4 changes: 3 additions & 1 deletion ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ Now, utilize the available connector operations.
### Return linked third-party accounts of the user

```ballerina
ConnectedAccountResponse[] connectedAccounts = check cl->/users/\@me/connections();
public function main() returns error? {
ConnectedAccountResponse[] connectedAccounts = check cl->/users/\@me/connections();
}
````
### Step 4: Run the Ballerina application
Expand Down
4 changes: 3 additions & 1 deletion ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ Now, utilize the available connector operations.
### Return linked third-party accounts of the user

```ballerina
ConnectedAccountResponse[] connectedAccounts = check cl->/users/\@me/connections();
public function main() returns error? {
ConnectedAccountResponse[] connectedAccounts = check cl->/users/\@me/connections();
}
````
### Step 4: Run the Ballerina application
Expand Down

0 comments on commit c3d2c5a

Please sign in to comment.