Class RawSubscriptionTypesClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.subscriptiontypes.RawSubscriptionTypesClient
-
public class RawSubscriptionTypesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawSubscriptionTypesClient(ClientOptions clientOptions)
-
Method Summary
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawSubscriptionTypesClient
public RawSubscriptionTypesClient(ClientOptions clientOptions)
-
-
Method Detail
-
attachSubscriptionTypeToContact
public IntercomHttpResponse<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 IntercomHttpResponse<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 IntercomHttpResponse<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.
-
detachSubscriptionTypeToContact
public IntercomHttpResponse<SubscriptionType> detachSubscriptionTypeToContact(DetachSubscriptionTypeToContactRequest request, RequestOptions requestOptions)
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 IntercomHttpResponse<SubscriptionTypeList> listSubscriptionTypes()
You can list all subscription types. A list of subscription type objects will be returned.
-
listSubscriptionTypes
public IntercomHttpResponse<SubscriptionTypeList> listSubscriptionTypes(RequestOptions requestOptions)
You can list all subscription types. A list of subscription type objects will be returned.
-
-