Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 667 Bytes

USAGE.md

File metadata and controls

31 lines (26 loc) · 667 Bytes
import { IntunedClient } from "@intuned/client";

const intunedClient = new IntunedClient({
    apiKey: "<YOUR_API_KEY_HERE>",
    workspaceId: "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
});

async function run() {
    const result = await intunedClient.files.extractStructuredData.sync(
        {
            type: "pdf",
            source: {
                type: "url",
                data: "http://unconscious-margin.name",
            },
        },
        {
            key: "<value>",
        }
    );

    // Handle the result
    console.log(result);
}

run();