import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const response = await client.applications.process({
edges: [{ from_field: 'from_field', from_node: 'from_node', to_field: 'to_field', to_node: 'to_node' }],
inputs: { foo: { foo: 'bar' } },
nodes: [{ id: 'id', application_node_schema_id: 'text_input_schema' }],
version: 'V0',
});
console.log(response);
"<any>"
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
const response = await client.applications.process({
edges: [{ from_field: 'from_field', from_node: 'from_node', to_field: 'to_field', to_node: 'to_node' }],
inputs: { foo: { foo: 'bar' } },
nodes: [{ id: 'id', application_node_schema_id: 'text_input_schema' }],
version: 'V0',
});
console.log(response);
"<any>"
Successful Response
The response is of type any
.