Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,18 @@ import ballerinax/hubspot.marketing.events as hsmevents;
1. Create a `Config.toml` file in the root directory of the Ballerina project and configure the obtained credentials in the above steps as follows:

```toml
clientId = <Client Id>
clientSecret = <Client Secret>
refreshToken = <Refresh Token>
clientId = "<Client Id>"
clientSecret = "<Client Secret>"
refreshToken = "<Refresh Token>"
```

>**Note (Optional):** If you want to use Set and Get Application Settings operations, you need to provide the Developer API Key in the `Config.toml` file as well.

```toml
clientId = <Client Id>
clientSecret = <Client Secret>
refreshToken = <Refresh Token>
apiKey = <API Key>
clientId = "<Client Id>"
clientSecret = "<Client Secret>"
refreshToken = "<Refresh Token>"
apiKey = "<API Key>"
```

2. Instantiate a `hsmevents:ConnectionConfig` with the obtained credentials and initialize the connector with it.
Expand Down
14 changes: 7 additions & 7 deletions ballerina/Module.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ import ballerinax/hubspot.marketing.events as hsmevents;
1. Create a `Config.toml` file in the root directory of the Ballerina project and configure the obtained credentials in the above steps as follows:

```toml
clientId = <Client Id>
clientSecret = <Client Secret>
refreshToken = <Refresh Token>
clientId = "<Client Id>"
clientSecret = "<Client Secret>"
refreshToken = "<Refresh Token>"
```

>**Note (Optional):** If you want to use Set and Get Application Settings operations, you need to provide the Developer API Key in the `Config.toml` file as well.

```toml
clientId = <Client Id>
clientSecret = <Client Secret>
refreshToken = <Refresh Token>
apiKey = <API Key>
clientId = "<Client Id>"
clientSecret = "<Client Secret>"
refreshToken = "<Refresh Token>"
apiKey = "<API Key>"
```

2. Instantiate a `hsmevents:ConnectionConfig` with the obtained credentials and initialize the connector with it.
Expand Down
14 changes: 7 additions & 7 deletions ballerina/Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ import ballerinax/hubspot.marketing.events as hsmevents;
1. Create a `Config.toml` file in the root directory of the Ballerina project and configure the obtained credentials in the above steps as follows:

```toml
clientId = <Client Id>
clientSecret = <Client Secret>
refreshToken = <Refresh Token>
clientId = "<Client Id>"
clientSecret = "<Client Secret>"
refreshToken = "<Refresh Token>"
```

>**Note (Optional):** If you want to use Set and Get Application Settings operations, you need to provide the Developer API Key in the `Config.toml` file as well.

```toml
clientId = <Client Id>
clientSecret = <Client Secret>
refreshToken = <Refresh Token>
apiKey = <API Key>
clientId = "<Client Id>"
clientSecret = "<Client Secret>"
refreshToken = "<Refresh Token>"
apiKey = "<API Key>"
```

2. Instantiate a `hsmevents:ConnectionConfig` with the obtained credentials and initialize the connector with it.
Expand Down
2 changes: 1 addition & 1 deletion ballerina/client.bal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// AUTO-GENERATED FILE. DO NOT MODIFY.
// This file is auto-generated by the Ballerina OpenAPI tool.

// Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com).
// Copyright (c) 2025, WSO2 LLC. (http://www.wso2.com).
//
// WSO2 LLC. licenses this file to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file except
Expand Down
3 changes: 1 addition & 2 deletions ballerina/tests/mock_server.bal
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ listener http:Listener httpListener = new (localPort);
http:Service mockService = service object {

resource isolated function post oauth2/token(@http:Payload http:Request request) returns json {
json response = {
return {
"token_type": "bearer",
"refresh_token": "mock",
"access_token": "mockAccessToken",
"expires_in": 1800
};
return response;
}

resource isolated function post events(@http:Payload MarketingEventCreateRequestParams createPayload)
Expand Down
187 changes: 0 additions & 187 deletions ballerina/tests/mock_tests.bal

This file was deleted.

Loading
Loading