import UnstructuredClient from 'unstructured-sdk';
const client = new UnstructuredClient({
authMethod: 'My Auth Method',
username: process.env['UNSTRUCTURED_USERNAME'], // This is the default and can be omitted
password: process.env['UNSTRUCTURED_PASSWORD'], // This is the default and can be omitted
});
const response = await client.metadata.getEvidence({
data_connector_name: 'data_connector_name',
filename: 'filename',
tag_id: 'tag_id',
tag_value: 'string',
});
console.log(response.evidence);