File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ The full API of this library can be found in [api.md](api.md).
2525``` js
2626import 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
3032async 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
4547import 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
4953async function main() {
5054 const params: Zeroentropy .DocumentGetInfoParams = { collection_name: ' collection_name' , path: ' path' };
You can’t perform that action at this time.
0 commit comments