HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

contains

Queries whether a recipient is contained in an unsubscribe list in Optimizely Campaign.

Type: boolean

Parameters

NameTypeValue
sessionIdStringSession ID
recipientIdStringRecipient ID

Return values

  • true: Recipient is found on at least one unsubscribe list
  • false: Recipient is not found on any unsubscribe list

Note: Usually, only one client-wide unsubscribe list exists.

Code structure

boolean contains(String sessionId, String recipientId)

What’s Next
Did this page help you?