Skip to content

Commit

Permalink
docs(readme): update example snippets (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored and cleb11 committed Dec 5, 2023
1 parent 2cfd432 commit 25d961f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ The full API of this library can be found in [api.md](https://www.github.com/Mod
import ModernTreasury from 'modern-treasury';

const modernTreasury = new ModernTreasury({
organizationId: 'my-organization-ID', // defaults to process.env["MODERN_TREASURY_ORGANIZATION_ID"]
apiKey: 'My API Key', // defaults to process.env["MODERN_TREASURY_API_KEY"]
organizationId: process.env['MODERN_TREASURY_ORGANIZATION_ID'], // This is the default and can be omitted
apiKey: process.env['MODERN_TREASURY_API_KEY'], // This is the default and can be omitted
});

async function main() {
Expand All @@ -46,8 +46,8 @@ This library includes TypeScript definitions for all request params and response
import ModernTreasury from 'modern-treasury';

const modernTreasury = new ModernTreasury({
organizationId: 'my-organization-ID', // defaults to process.env["MODERN_TREASURY_ORGANIZATION_ID"]
apiKey: 'My API Key', // defaults to process.env["MODERN_TREASURY_API_KEY"]
organizationId: process.env['MODERN_TREASURY_ORGANIZATION_ID'], // This is the default and can be omitted
apiKey: process.env['MODERN_TREASURY_API_KEY'], // This is the default and can be omitted
});

async function main() {
Expand Down

0 comments on commit 25d961f

Please sign in to comment.