File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 19
22openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-37465954227cd4e96920805a44aa6cf9a51da1f0073be89bbcb69cf32ef6cf22.yml
33openapi_spec_hash : 145f3fc12cd69c9f6799ded0f10c6ad3
4- config_hash : ae09b662ffe8000b4aaeef17041b62bd
4+ config_hash : 2a62cdf52439116834cd60a5a25e3be4
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ The full API of this library can be found in [api.md](api.md).
2222``` js
2323import 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
2730await client .messages .sendToPhone ({
2831 phoneNumber: ' +1234567890' ,
@@ -38,7 +41,10 @@ This library includes TypeScript definitions for all request params and response
3841``` ts
3942import 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
4349const params: SentDm .MessageSendToPhoneParams = {
4450 phoneNumber: ' +1234567890' ,
You can’t perform that action at this time.
0 commit comments