Class RawVisitorsClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(FindVisitorRequest request) You can fetch the details of a single visitor.find(FindVisitorRequest request, RequestOptions requestOptions) You can fetch the details of a single visitor.You can merge a Visitor to a Contact of role typeleadoruser.mergeToContact(MergeVisitorToContactRequest request, RequestOptions requestOptions) You can merge a Visitor to a Contact of role typeleadoruser.update(UpdateVisitorRequest request) Sending a PUT request to/visitorswill result in an update of an existing Visitor.update(UpdateVisitorRequest request, RequestOptions requestOptions) Sending a PUT request to/visitorswill result in an update of an existing Visitor.
-
Field Details
-
clientOptions
-
-
Constructor Details
-
RawVisitorsClient
-
-
Method Details
-
find
You can fetch the details of a single visitor. -
find
public IntercomHttpResponse<Visitor> find(FindVisitorRequest request, RequestOptions requestOptions) You can fetch the details of a single visitor. -
update
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. -
update
public IntercomHttpResponse<Visitor> update(UpdateVisitorRequest 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. -
mergeToContact
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.
-
mergeToContact
public IntercomHttpResponse<Contact> mergeToContact(MergeVisitorToContactRequest 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.
-