Skip to content
Open
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
16 changes: 12 additions & 4 deletions sdk/application/ApplicationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Webhook = require("./Webhook/WebhookApplicationClient");
const { FDKClientValidationError } = require("../common/FDKError");
const { Logger } = require("../common/Logger");
const { convertStringToBase64 } = require("../common/utils");
const { execute } = require("./ApplicationAPIClient");
const ApplicationAPIClient = require("./ApplicationAPIClient");

/**
* Represents the client for the application.
Expand Down Expand Up @@ -111,9 +111,17 @@ class ApplicationClient {
headers,
responseHeaders = false,
}) {
return await execute(this.config, method, url, query, body, headers, {
responseHeaders,
});
return await ApplicationAPIClient.execute(
this.config,
method,
url,
query,
body,
headers,
{
responseHeaders,
}
);
}
}

Expand Down
16 changes: 12 additions & 4 deletions sdk/partner/PartnerClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Theme = require("./Theme/ThemePartnerClient");
const Webhook = require("./Webhook/WebhookPartnerClient");

const { FDKClientValidationError } = require("../common/FDKError");
const { execute } = require("./PartnerAPIClient");
const PartnerAPIClient = require("./PartnerAPIClient");

/**
* Represents the client for the partner APIs.
Expand Down Expand Up @@ -54,9 +54,17 @@ class PartnerClient {
headers,
responseHeaders = false,
}) {
return await execute(this.config, method, url, query, body, headers, {
responseHeaders,
});
return await PartnerAPIClient.execute(
this.config,
method,
url,
query,
body,
headers,
{
responseHeaders,
}
);
}
}

Expand Down
16 changes: 12 additions & 4 deletions sdk/platform/PlatformClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Webhook = require("./Webhook/WebhookPlatformClient");

const PlatformApplicationClient = require("./PlatformApplicationClient");
const { FDKClientValidationError } = require("../common/FDKError");
const { execute } = require("./PlatformAPIClient");
const PlatformAPIClient = require("./PlatformAPIClient");

/**
* Represents the client for the platform.
Expand Down Expand Up @@ -125,9 +125,17 @@ class PlatformClient {
headers,
responseHeaders = false,
}) {
return await execute(this.config, method, url, query, body, headers, {
responseHeaders,
});
return await PlatformAPIClient.execute(
this.config,
method,
url,
query,
body,
headers,
{
responseHeaders,
}
);
}
}

Expand Down