0.24.0 • Published 11 months ago

@speakeasy-sdks/sensible v0.24.0

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

Run on Repl.it

SDK Installation

NPM

npm add @speakeasy-sdks/sensible

Yarn

yarn add @speakeasy-sdks/sensible

Authentication:

Sensible uses API keys to authenticate requests. Find your API key on your Account page in the Sensible app. If you're having trouble with your current key, please reach out to support@sensible.so. Keep your API keys secure and do not share them publicly accessible areas such as GitHub, client-side code, etc.

Authentication to the API is performed via Bearer Authentication. Provide your API key as the bearer auth value, for example:

curl --request POST \
       --url "https://api.sensible.so/v0/extract/<TYPE>" \
       --header "Authorization: Bearer <YOUR_API_KEY>" \
       --header "Content-Type: application/pdf" \
       --data-binary "@your_doc.pdf" \

SDK Example Usage

import { Sensible } from "@speakeasy-sdks/sensible";
import { ExtractDataJsonResponse } from "@speakeasy-sdks/sensible/dist/sdk/models/operations";
import { Environment, ExtractionStatus, ValidationSeverity } from "@speakeasy-sdks/sensible/dist/sdk/models/shared";

const sdk = new Sensible({
  security: {
    bearerAuth: "YOUR_BEARER_TOKEN_HERE",
  },
});

sdk.document.extractDataJson("corrupti", {
  document: "provident",
}, Environment.Development).then((res: ExtractDataJsonResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Available Resources and Operations

document

pdf

portfolio

results

SDK Generated by Speakeasy

0.24.0

11 months ago

0.23.1

11 months ago

0.13.1

1 year ago

0.8.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago