Skip to content

Commit d1aef26

Browse files
committed
Add API changes
1 parent 2a11ba5 commit d1aef26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

brevo-java-client-demo/src/main/java/software/xdev/Application.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ public static void main(final String[] args)
4343
final GetExtendedContactDetails contactInfo = contactsApi.getContactInfo(
4444
identifier,
4545
null,
46+
null,
4647
null);
4748
LOG.info("Got contact[email={},listIds={}]", contactInfo.getEmail(), contactInfo.getListIds());
4849
if(!contactInfo.getListIds().contains(listId))
4950
{
50-
contactsApi.updateContact(identifier, new UpdateContact().listIds(List.of(listId)));
51+
contactsApi.updateContact(
52+
identifier,
53+
new UpdateContact().listIds(List.of(listId)),
54+
null);
5155
LOG.info("Updated contact to include listId={}", listId);
5256
}
5357
}

0 commit comments

Comments
 (0)