Class AsyncVisitorsClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.visitors.AsyncVisitorsClient
-
public class AsyncVisitorsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncVisitorsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<Contact>convertVisitor(ConvertVisitorRequest request)You can merge a Visitor to a Contact of role typeleadoruser.java.util.concurrent.CompletableFuture<Contact>convertVisitor(ConvertVisitorRequest request, RequestOptions requestOptions)You can merge a Visitor to a Contact of role typeleadoruser.java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>>retrieveVisitorWithUserId(RetrieveVisitorWithUserIdRequest request)You can fetch the details of a single visitor.java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>>retrieveVisitorWithUserId(RetrieveVisitorWithUserIdRequest request, RequestOptions requestOptions)You can fetch the details of a single visitor.java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>>updateVisitor(java.lang.Object request)Sending a PUT request to/visitorswill result in an update of an existing Visitor.java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>>updateVisitor(java.lang.Object request, RequestOptions requestOptions)Sending a PUT request to/visitorswill result in an update of an existing Visitor.AsyncRawVisitorsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncVisitorsClient
public AsyncVisitorsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawVisitorsClient withRawResponse()
Get responses with HTTP metadata like headers
-
retrieveVisitorWithUserId
public java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>> retrieveVisitorWithUserId(RetrieveVisitorWithUserIdRequest request)
You can fetch the details of a single visitor.
-
retrieveVisitorWithUserId
public java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>> retrieveVisitorWithUserId(RetrieveVisitorWithUserIdRequest request, RequestOptions requestOptions)
You can fetch the details of a single visitor.
-
updateVisitor
public java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>> updateVisitor(java.lang.Object request)
Sending a PUT request to/visitorswill result in an update of an existing Visitor.Option 1. You can update a visitor by passing in the
user_idof the visitor in the Request body.Option 2. You can update a visitor by passing in the
idof the visitor in the Request body.
-
updateVisitor
public java.util.concurrent.CompletableFuture<java.util.Optional<Visitor>> updateVisitor(java.lang.Object request, RequestOptions requestOptions)
Sending a PUT request to/visitorswill result in an update of an existing Visitor.Option 1. You can update a visitor by passing in the
user_idof the visitor in the Request body.Option 2. You can update a visitor by passing in the
idof the visitor in the Request body.
-
convertVisitor
public java.util.concurrent.CompletableFuture<Contact> convertVisitor(ConvertVisitorRequest request)
You can merge a Visitor to a Contact of role typeleadoruser.📘 What happens upon a visitor being converted?
If the User exists, then the Visitor will be merged into it, the Visitor deleted and the User returned. If the User does not exist, the Visitor will be converted to a User, with the User identifiers replacing it's Visitor identifiers.
-
convertVisitor
public java.util.concurrent.CompletableFuture<Contact> convertVisitor(ConvertVisitorRequest request, RequestOptions requestOptions)
You can merge a Visitor to a Contact of role typeleadoruser.📘 What happens upon a visitor being converted?
If the User exists, then the Visitor will be merged into it, the Visitor deleted and the User returned. If the User does not exist, the Visitor will be converted to a User, with the User identifiers replacing it's Visitor identifiers.
-
-