Language
Take care not to share your API tokens in code. You may want to use environment variables to store tokens.
Before making any API requests with the node package you need to call setup with your space ID and API token. Every subsequent request will be authenticated with these credentials.
Typescript
const spaceId = 123;
const apiToken = "my-api-token";
lingo.setup(spaceId, apiToken);
// ...
const kits = await lingo.fetchKits();
The also allows you to set your credentials in the apiToken.ts file to easily get up and running. You may eventually need to update this to share code.