Class AsyncSubscriptionTypesClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.subscriptiontypes.AsyncSubscriptionTypesClient
-
public class AsyncSubscriptionTypesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncSubscriptionTypesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<SubscriptionType>attachSubscriptionTypeToContact(AttachSubscriptionTypeToContactRequest request)You can add a specific subscription to a contact.java.util.concurrent.CompletableFuture<SubscriptionType>attachSubscriptionTypeToContact(AttachSubscriptionTypeToContactRequest request, RequestOptions requestOptions)You can add a specific subscription to a contact.java.util.concurrent.CompletableFuture<SubscriptionType>detachSubscriptionTypeToContact(DetachSubscriptionTypeToContactRequest request)You can remove a specific subscription from a contact.java.util.concurrent.CompletableFuture<SubscriptionType>detachSubscriptionTypeToContact(DetachSubscriptionTypeToContactRequest request, RequestOptions requestOptions)You can remove a specific subscription from a contact.java.util.concurrent.CompletableFuture<SubscriptionTypeList>listSubscriptionTypes()You can list all subscription types.java.util.concurrent.CompletableFuture<SubscriptionTypeList>listSubscriptionTypes(RequestOptions requestOptions)You can list all subscription types.AsyncRawSubscriptionTypesClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncSubscriptionTypesClient
public AsyncSubscriptionTypesClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawSubscriptionTypesClient withRawResponse()
Get responses with HTTP metadata like headers
-
attachSubscriptionTypeToContact
public java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<SubscriptionTypeList> listSubscriptionTypes()
You can list all subscription types. A list of subscription type objects will be returned.
-
listSubscriptionTypes
public java.util.concurrent.CompletableFuture<SubscriptionTypeList> listSubscriptionTypes(RequestOptions requestOptions)
You can list all subscription types. A list of subscription type objects will be returned.
-
-