Skip to content

Commit

Permalink
chore(docs): use client instead of package name in Node examples (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jul 18, 2024
1 parent 015cfe5 commit cd5da89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The full API of this library can be found in [api.md](api.md).
```js
import Orb from 'orb-billing';

const orb = new Orb({
const client = new Orb({
apiKey: process.env['ORB_API_KEY'], // This is the default and can be omitted
});

Expand All @@ -41,7 +41,7 @@ This library includes TypeScript definitions for all request params and response
```ts
import Orb from 'orb-billing';

const orb = new Orb({
const client = new Orb({
apiKey: process.env['ORB_API_KEY'], // This is the default and can be omitted
});

Expand Down Expand Up @@ -104,7 +104,7 @@ You can use the `maxRetries` option to configure or disable this:
<!-- prettier-ignore -->
```js
// Configure the default for all requests:
const orb = new Orb({
const client = new Orb({
maxRetries: 0, // default is 2
});

Expand All @@ -121,7 +121,7 @@ Requests time out after 1 minute by default. You can configure this with a `time
<!-- prettier-ignore -->
```ts
// Configure the default for all requests:
const orb = new Orb({
const client = new Orb({
timeout: 20 * 1000, // 20 seconds (default is 1 minute)
});

Expand Down Expand Up @@ -176,7 +176,7 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi

<!-- prettier-ignore -->
```ts
const orb = new Orb();
const client = new Orb();

const response = await orb.customers
.create({ email: 'example-customer@withorb.com', name: 'My Customer' })
Expand Down Expand Up @@ -287,7 +287,7 @@ import http from 'http';
import { HttpsProxyAgent } from 'https-proxy-agent';

// Configure the default for all requests:
const orb = new Orb({
const client = new Orb({
httpAgent: new HttpsProxyAgent(process.env.PROXY_URL),
});

Expand Down

0 comments on commit cd5da89

Please sign in to comment.