Skip to content

Commit 3c72c0b

Browse files
committed
Use real-life list IDs
1 parent 7a52e45 commit 3c72c0b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ const contactProperties = {
8888
favoriteColor: "Red" /* Custom property */,
8989
};
9090
const mailingLists = {
91-
list_123: true,
92-
list_456: false,
91+
cm06f5v0e45nf0ml5754o9cix: true,
92+
cm16k73gq014h0mmj5b6jdi9r: false,
9393
};
9494
const resp = await loops.createContact(
9595
@@ -209,6 +209,9 @@ If no contact is found, an empty list will be returned.
209209
"subscribed": true,
210210
"userGroup": "",
211211
"userId": "12345",
212+
"mailingLists": {
213+
"cm06f5v0e45nf0ml5754o9cix": true
214+
},
212215
"favoriteColor": "Blue" /* Custom property */
213216
}
214217
]
@@ -284,12 +287,12 @@ If your account has no mailing lists, an empty list will be returned.
284287
```json
285288
[
286289
{
287-
"id": "list_123",
290+
"id": "cm06f5v0e45nf0ml5754o9cix",
288291
"name": "Main list",
289292
"isPublic": true
290293
},
291294
{
292-
"id": "list_456",
295+
"id": "cm16k73gq014h0mmj5b6jdi9r",
293296
"name": "Investors",
294297
"isPublic": false
295298
}
@@ -331,8 +334,8 @@ const resp = await loops.sendEvent({
331334
signupDate: "2024-03-21T10:09:23Z",
332335
},
333336
mailingLists: {
334-
list_123: true,
335-
list_456: false,
337+
cm06f5v0e45nf0ml5754o9cix: true,
338+
cm16k73gq014h0mmj5b6jdi9r: false,
336339
},
337340
});
338341

0 commit comments

Comments
 (0)