Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Aug 30, 2024
1 parent ad826be commit 6138a55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ The full API of this library can be found in [api.md](api.md).
```js
import StudioSDK from '@clear-street/studio-sdk';

const client = new StudioSDK();
const client = new StudioSDK({
bearerToken: process.env['STUDIO_SDK_BEARER_TOKEN'], // This is the default and can be omitted
});

async function main() {
const entity = await client.entities.retrieve('<your_entity_id>');
Expand All @@ -41,7 +43,9 @@ This library includes TypeScript definitions for all request params and response
```ts
import StudioSDK from '@clear-street/studio-sdk';

const client = new StudioSDK();
const client = new StudioSDK({
bearerToken: process.env['STUDIO_SDK_BEARER_TOKEN'], // This is the default and can be omitted
});

async function main() {
const entity: StudioSDK.Entity = await client.entities.retrieve('<your_entity_id>');
Expand Down

0 comments on commit 6138a55

Please sign in to comment.