Skip to content

Commit 409a82f

Browse files
feat(api): manual updates
1 parent df604ab commit 409a82f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 19
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-37465954227cd4e96920805a44aa6cf9a51da1f0073be89bbcb69cf32ef6cf22.yml
33
openapi_spec_hash: 145f3fc12cd69c9f6799ded0f10c6ad3
4-
config_hash: ae09b662ffe8000b4aaeef17041b62bd
4+
config_hash: 2a62cdf52439116834cd60a5a25e3be4

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ The full API of this library can be found in [api.md](api.md).
2222
```js
2323
import SentDm from 'sentdm';
2424

25-
const client = new SentDm();
25+
const client = new SentDm({
26+
apiKey: process.env['SENT_DM_API_KEY'], // This is the default and can be omitted
27+
customerSenderID: process.env['SENT_DM_CUSTOMER_SENDER_ID'], // This is the default and can be omitted
28+
});
2629

2730
await client.messages.sendToPhone({
2831
phoneNumber: '+1234567890',
@@ -38,7 +41,10 @@ This library includes TypeScript definitions for all request params and response
3841
```ts
3942
import SentDm from 'sentdm';
4043

41-
const client = new SentDm();
44+
const client = new SentDm({
45+
apiKey: process.env['SENT_DM_API_KEY'], // This is the default and can be omitted
46+
customerSenderID: process.env['SENT_DM_CUSTOMER_SENDER_ID'], // This is the default and can be omitted
47+
});
4248

4349
const params: SentDm.MessageSendToPhoneParams = {
4450
phoneNumber: '+1234567890',

0 commit comments

Comments
 (0)