Skip to content

Commit bdb9681

Browse files
feat(api): update via SDK Studio
1 parent f1026d5 commit bdb9681

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ The full API of this library can be found in [api.md](api.md).
2525
```js
2626
import Zeroentropy from 'zeroentropy';
2727

28-
const client = new Zeroentropy();
28+
const client = new Zeroentropy({
29+
bearerToken: process.env['ZEROENTROPY_API_KEY'], // This is the default and can be omitted
30+
});
2931

3032
async function main() {
3133
const response = await client.documents.getInfo({ collection_name: 'collection_name', path: 'path' });
@@ -44,7 +46,9 @@ This library includes TypeScript definitions for all request params and response
4446
```ts
4547
import Zeroentropy from 'zeroentropy';
4648

47-
const client = new Zeroentropy();
49+
const client = new Zeroentropy({
50+
bearerToken: process.env['ZEROENTROPY_API_KEY'], // This is the default and can be omitted
51+
});
4852

4953
async function main() {
5054
const params: Zeroentropy.DocumentGetInfoParams = { collection_name: 'collection_name', path: 'path' };

0 commit comments

Comments
 (0)