Skip to content

Commit bfead38

Browse files
authored
feat: add n8n platform header (#50)
1 parent eb5c553 commit bfead38

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

nodes/Apify/resources/genericFunctions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export async function apiRequest(
2929
method,
3030
qs: query,
3131
url: endpoint,
32+
headers: {
33+
'x-apify-integration-platform': 'n8n',
34+
},
3235
};
3336

3437
if (method === 'GET') {

nodes/Apify/resources/key-value-stores/get-key-value-store-record/execute.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export async function getKeyValueStoreRecord(
2222
const apiResult = await this.helpers.httpRequestWithAuthentication.call(this, 'apifyApi', {
2323
method: 'GET' as IHttpRequestMethods,
2424
url: `${consts.APIFY_API_URL}/v2/key-value-stores/${storeId.value}/records/${recordKey.value}`,
25+
headers: {
26+
'x-apify-integration-platform': 'n8n',
27+
},
2528
returnFullResponse: true,
2629
encoding: 'arraybuffer',
2730
});

0 commit comments

Comments
 (0)