@@ -20,7 +20,7 @@ function getApertureClient(){
2020 * @param {string } method - The HTTP method to use (e.g., 'GET', 'POST').
2121 * @param {string } url - The URL to which the request is sent.
2222 * @param {Object } [requestOptions] - The options for the request. This includes headers, request body (for POST/PUT), etc.
23- * @param {Object } [requestOptions.body ] - The data that needs to be sent with the request, used for POST/PUT requests
23+ * @param {Object } [requestOptions.data ] - The data that needs to be sent with the request, used for POST/PUT requests
2424 * @param {Object } [requestOptions.headers] - The headers that needs to be sent with the request
2525 * @returns {Promise<{res: https.IncomingMessage, data: string}> } A Promise that resolves with the response object and the body data as a string.
2626 * @throws {Error } Throws an error if the request cannot be completed
@@ -74,7 +74,7 @@ export async function makeRequest(method, url, requestOptions) {
7474 * @param {string } url - The URL to which the request is sent.
7575 * @param {Object } [options] - The options for the request. This includes headers, request body (for POST/PUT), etc.
7676 * @param {Object } [options.rateLimitOptions] - Options related to rate limits
77- * @param {Object } [options.body ] - The data that needs to be sent with the request, used for POST/PUT requests
77+ * @param {Object } [options.data ] - The data that needs to be sent with the request, used for POST/PUT requests
7878 * @param {Object } [options.headers] - The headers that needs to be sent with the request
7979 * @returns {Promise<{res: https.IncomingMessage, data: string}> } A Promise that resolves with the response object and the body data as a string.
8080 * @throws {Error } Throws an error if the rate limit is exceeded or if an invalid argument is passed.
0 commit comments