@unsent/sdk 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.mts +1602 -632
- package/dist/index.d.ts +1602 -632
- package/dist/index.js +250 -7
- package/dist/index.mjs +245 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ bun add @unsent/sdk
|
|
|
38
38
|
```typescript
|
|
39
39
|
import { unsent } from "@unsent/sdk";
|
|
40
40
|
|
|
41
|
-
const client = new unsent("
|
|
41
|
+
const client = new unsent("un_xxxx");
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### Environment Variables
|
|
@@ -303,7 +303,7 @@ Create and manage email campaigns:
|
|
|
303
303
|
```typescript
|
|
304
304
|
import { unsent } from "@unsent/sdk";
|
|
305
305
|
|
|
306
|
-
const client = new unsent("
|
|
306
|
+
const client = new unsent("un_xxxx");
|
|
307
307
|
|
|
308
308
|
// Create a campaign
|
|
309
309
|
const campaign = await client.campaigns.create({
|
|
@@ -390,7 +390,7 @@ The SDK is fully typed with TypeScript:
|
|
|
390
390
|
```typescript
|
|
391
391
|
import { unsent } from "@unsent/sdk";
|
|
392
392
|
|
|
393
|
-
const client = new unsent("
|
|
393
|
+
const client = new unsent("un_xxxx");
|
|
394
394
|
|
|
395
395
|
// Full type inference and autocomplete
|
|
396
396
|
const result = await client.emails.send({
|