API Reference: Third-Party APIs
Below are the parameters and return data type references for the methods in TypeScript format.
clientSecretRequest
ts
clientSecretRequest(
params: {
clientSecretName: string; // The name of the client secret key registered in your Skapi service.
url: string; // The third-party API endpoint URL.
method: 'GET' | 'POST' | 'DELETE' | 'PUT'; // The HTTP method.
headers?: { [key: string]: string }; // Request headers as a key-value object.
data?: { [key: string]: any }; // Request body as a key-value object (used when `method` is `POST`).
params?: { [key: string]: string }; // Query parameters as a key-value object (used when `method` is `GET`).
}
): Promise<any>