Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
steevepay committed Aug 9, 2024
1 parent 0676e44 commit efbaa05
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async fn main() -> Result<(), CarboneError> {
### Table of content

- SDK functions:
- [CarboneSDK Constructor](#carbone-sdk-constructor)
- [SDK Constructor](#sdk-constructor)
- [Generate and Download a Document](#generate-and-download-document)
- [Generate a Document Only](#generate-document-only)
- [Download a Document Only](#download-document-only)
Expand All @@ -90,7 +90,7 @@ async fn main() -> Result<(), CarboneError> {
- [Test commands](#test-commands)
- [Contributing](#-contributing)

### Carbone SDK Constructor
### SDK Constructor

**Definition**

Expand All @@ -117,18 +117,6 @@ let config: Config = Config::new("ON_PREMISE_URL".to_string(), "api_time_out_in_
let carbone = Carbone::new(&config, None)?;
```

Constructor to create a new instance of CarboneSDK.
The access token can be pass as an argument or by the environment variable "CARBONE_TOKEN".
Get your API key on your Carbone account: https://account.carbone.io/.
To set a new environment variable, use the command:
```bash
$ export CARBONE_TOKEN=your-secret-token
```
Check if it is set by running:
```bash
$ printenv | grep "CARBONE_TOKEN"
```

### Generate and Download Document

Generate a document from a local template file:
Expand Down

0 comments on commit efbaa05

Please sign in to comment.