From 6a023eb26f57eea88a846dd858838e66e9d0266d Mon Sep 17 00:00:00 2001 From: tgt Date: Wed, 6 Nov 2024 14:08:52 +0530 Subject: [PATCH 1/2] feat:get-subscribers node.js --- api-reference/subscribers/get-subscribers.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api-reference/subscribers/get-subscribers.mdx b/api-reference/subscribers/get-subscribers.mdx index 5510ab94..de3187ee 100644 --- a/api-reference/subscribers/get-subscribers.mdx +++ b/api-reference/subscribers/get-subscribers.mdx @@ -24,6 +24,17 @@ Novu novu = new Novu(apiKey); } +``` + +``` javascript Node.js +import { Novu } from '@novu/node'; + +const novu = new Novu(''); + +const page = 0; +const limit = 20; + +await novu.subscribers.list(page, limit); ``` From 1643e778f53f24b857ec4024479e8e5746c30a3b Mon Sep 17 00:00:00 2001 From: Pawan Jain Date: Wed, 6 Nov 2024 14:14:28 +0530 Subject: [PATCH 2/2] Update api-reference/subscribers/get-subscribers.mdx --- api-reference/subscribers/get-subscribers.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-reference/subscribers/get-subscribers.mdx b/api-reference/subscribers/get-subscribers.mdx index de3187ee..29d1f487 100644 --- a/api-reference/subscribers/get-subscribers.mdx +++ b/api-reference/subscribers/get-subscribers.mdx @@ -26,7 +26,7 @@ Novu novu = new Novu(apiKey); ``` -``` javascript Node.js +```javascript Node.js import { Novu } from '@novu/node'; const novu = new Novu('');