diff --git a/README.md b/README.md index 0705c8d..bf459c0 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ We are currently in beta and trying to rollout to public slowly. If you're inter - [x] Transactional Mails - [x] Rest API - [x] Dashboard (Delivered, opened, clicked, bounced) -- [ ] Marketing email +- [x] Marketing email - [ ] Webhook support - [ ] SMTP support - [ ] BYO AWS credentials diff --git a/apps/docs/get-started/nodejs.mdx b/apps/docs/get-started/nodejs.mdx index 377130b..51116a1 100644 --- a/apps/docs/get-started/nodejs.mdx +++ b/apps/docs/get-started/nodejs.mdx @@ -54,3 +54,32 @@ icon: node-js ``` + +## Adding contacts programatically + + + + Get the contact book id from the [Unsend dashboard](https://app.unsend.dev/contacts/). Copy the contact book id + + + + ```javascript + unsend.contacts + .create("clzeydgeygff", { + email: "hey@koushik.dev", + firstName: "Koushik", + lastName: "KM", + }) + ``` + + + + + ```javascript + unsend.contacts.update("clzeydgeygff", contactId, { + firstName: "Koushik", + lastName: "KM", + }); + ``` + +