Skip to content

Commit 90af63d

Browse files
feat(api): api update
1 parent 5695db9 commit 90af63d

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 19
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-67fa00cfa520b681534cdcfc26f133783e4c796b1dbc5bd18b91daf4e7c8a3f2.yml
3-
openapi_spec_hash: 23cf4045a307cd8ebae6c6162a7f4902
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-8185a3220d025ef863163f09bcafe0d6583822d6da036994ab214efda25b9caa.yml
3+
openapi_spec_hash: 60830ecaaf3ee2a3f39b5f48c3faeaee
44
config_hash: ae09b662ffe8000b4aaeef17041b62bd

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ 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({
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-
});
25+
const client = new SentDm();
2926

3027
await client.messages.sendToPhone({
3128
phoneNumber: '+1234567890',
@@ -41,10 +38,7 @@ This library includes TypeScript definitions for all request params and response
4138
```ts
4239
import SentDm from 'sentdm';
4340

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-
});
41+
const client = new SentDm();
4842

4943
const params: SentDm.MessageSendToPhoneParams = {
5044
phoneNumber: '+1234567890',

tests/api-resources/contacts.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('resource contacts', () => {
4545

4646
// Prism tests are disabled
4747
test.skip('retrieveID: only required params', async () => {
48-
const responsePromise = client.contacts.retrieveID({ id: 'id' });
48+
const responsePromise = client.contacts.retrieveID({ id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' });
4949
const rawResponse = await responsePromise.asResponse();
5050
expect(rawResponse).toBeInstanceOf(Response);
5151
const response = await responsePromise;
@@ -57,6 +57,6 @@ describe('resource contacts', () => {
5757

5858
// Prism tests are disabled
5959
test.skip('retrieveID: required and optional params', async () => {
60-
const response = await client.contacts.retrieveID({ id: 'id' });
60+
const response = await client.contacts.retrieveID({ id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' });
6161
});
6262
});

0 commit comments

Comments
 (0)