Skip to content

Commit

Permalink
Merge pull request #3 from klippa-app/add-readme-and-api-files
Browse files Browse the repository at this point in the history
ReadMe and Copy Script
  • Loading branch information
elbble authored Apr 4, 2024
2 parents d07687e + 680aea0 commit cd9f245
Show file tree
Hide file tree
Showing 6 changed files with 3,483 additions and 9,049 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
always-auth: true
- run: npm install
- run: npm run build
- run: npm run copy-api
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57 changes: 55 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,67 @@
# NodeJSSDK
This is the Node JS Developer SDK for DocHorizon.
The SDK offers multiple functions for accessing our API services within
your own application.
 

## Description
NodeJS developer SDK for DocHorizon.
## DocHorizon API Key
To fully utilize this SDK you will need to authenticate using a DocHorizon API key.
If you are interested in our services but do not have an API key yet, feel free to contact us [here](https://klippa.com/en/contact-en)

 

## Installation
install the SDK using npm.


```npm install @klippa/dochorizon-sdk```

or

```npm i @klippa/dochorizon-sdk```

 

## Usage
1. Authenticate using your api-key as follows:
```DocHorizon.authenticate({your-api-key})```
2. capture a document using the financial model (example):
```DocHorizon.financial.capture({your-document})```
3. If at any point you want to unauthenticate, use the following:
```DocHorizon.unauthenticate()```

 
This SDK is organized into various services and can be accessed using the following syntax:
```DocHorizon.{service}```. To use a specific function from a service, call upon
that function using the following syntax: ```DocHorizon.{service}.{function}```.
 
For a basic overview of provided services within this SDK, refer to the following section. For a
more complete overview of **all** services and their functions and options, consult to the official
[DocHorizon SDK documentation] (coming soon!)

 

### Provided Services
The following services are included in this SDK:

- **Auth**: Provides functions for retrieving information about the used API-key
- **Document** **Capturing**: Provides generic functions regarding capturing models
- **Document** **Toolkit**: Offers multiple function to get information from documents,
merge documents, split documents, and render documents as images
- **Financial**: Provides functions for using the financial capturing model
- **Generic**: Provides functions for using the generic capturing model
- **Prompt** **Builder**: Offers functions for using the prompt builder capturing model
- **Storage**: Provides the ability to save a file to DocHorizon storage


 

## Support
If you encounter any issues, please don't hesitate to contact us [here](https://klippa.com/en/contact-en).
Alternatively, you can refer to the DocHorizon documentation [here](https://dochorizon.klippa.com/docs).
 

## License
The MIT License (MIT)

 
Loading

0 comments on commit cd9f245

Please sign in to comment.