Class SubscriptionTypesClient


  • public class SubscriptionTypesClient
    extends java.lang.Object
    • Constructor Detail

      • SubscriptionTypesClient

        public SubscriptionTypesClient​(ClientOptions clientOptions)
    • Method Detail

      • attachSubscriptionTypeToContact

        public SubscriptionType attachSubscriptionTypeToContact​(AttachSubscriptionTypeToContactRequest request)
        You can add a specific subscription to a contact. In Intercom, we have two different subscription types based on user consent - opt-out and opt-in:

        1.Attaching a contact to an opt-out subscription type will opt that user out from receiving messages related to that subscription type.

        2.Attaching a contact to an opt-in subscription type will opt that user in to receiving messages related to that subscription type.

        This will return a subscription type model for the subscription type that was added to the contact.

      • attachSubscriptionTypeToContact

        public SubscriptionType attachSubscriptionTypeToContact​(AttachSubscriptionTypeToContactRequest request,
                                                                RequestOptions requestOptions)
        You can add a specific subscription to a contact. In Intercom, we have two different subscription types based on user consent - opt-out and opt-in:

        1.Attaching a contact to an opt-out subscription type will opt that user out from receiving messages related to that subscription type.

        2.Attaching a contact to an opt-in subscription type will opt that user in to receiving messages related to that subscription type.

        This will return a subscription type model for the subscription type that was added to the contact.

      • detachSubscriptionTypeToContact

        public SubscriptionType detachSubscriptionTypeToContact​(DetachSubscriptionTypeToContactRequest request)
        You can remove a specific subscription from a contact. This will return a subscription type model for the subscription type that was removed from the contact.
      • listSubscriptionTypes

        public SubscriptionTypeList listSubscriptionTypes()
        You can list all subscription types. A list of subscription type objects will be returned.
      • listSubscriptionTypes

        public SubscriptionTypeList listSubscriptionTypes​(RequestOptions requestOptions)
        You can list all subscription types. A list of subscription type objects will be returned.