mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
17 lines
500 B
TypeScript
17 lines
500 B
TypeScript
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
|
|
|
import { executeRequestWithSessionManagement } from '../common/session.utils';
|
|
|
|
export async function execute(
|
|
this: IExecuteFunctions,
|
|
index: number,
|
|
): Promise<INodeExecutionData[]> {
|
|
const result = await executeRequestWithSessionManagement.call(this, index, {
|
|
method: 'POST',
|
|
path: '/sessions/{sessionId}/windows/{windowId}/scrape-content',
|
|
body: {},
|
|
});
|
|
|
|
return this.helpers.returnJsonArray({ ...result });
|
|
}
|