Class AsyncVisitorsClient

java.lang.Object
com.intercom.api.resources.visitors.AsyncVisitorsClient

public class AsyncVisitorsClient extends Object
  • Field Details

  • Constructor Details

    • AsyncVisitorsClient

      public AsyncVisitorsClient(ClientOptions clientOptions)
  • Method Details

    • withRawResponse

      public AsyncRawVisitorsClient withRawResponse()
      Get responses with HTTP metadata like headers
    • find

      You can fetch the details of a single visitor.
    • find

      public CompletableFuture<Visitor> find(FindVisitorRequest request, RequestOptions requestOptions)
      You can fetch the details of a single visitor.
    • update

      Sending a PUT request to /visitors will result in an update of an existing Visitor.

      Option 1. You can update a visitor by passing in the user_id of the visitor in the Request body.

      Option 2. You can update a visitor by passing in the id of the visitor in the Request body.

    • update

      public CompletableFuture<Visitor> update(UpdateVisitorRequest request, RequestOptions requestOptions)
      Sending a PUT request to /visitors will result in an update of an existing Visitor.

      Option 1. You can update a visitor by passing in the user_id of the visitor in the Request body.

      Option 2. You can update a visitor by passing in the id of the visitor in the Request body.

    • mergeToContact

      public CompletableFuture<Contact> mergeToContact(MergeVisitorToContactRequest request)
      You can merge a Visitor to a Contact of role type lead or user.

      📘 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.

    • mergeToContact

      public CompletableFuture<Contact> mergeToContact(MergeVisitorToContactRequest request, RequestOptions requestOptions)
      You can merge a Visitor to a Contact of role type lead or user.

      📘 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.