Class RawTagsClient
- java.lang.Object
-
- com.intercom.api.resources.tags.RawTagsClient
-
public class RawTagsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description RawTagsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntercomHttpResponse<Tag>create(TagsCreateRequestBody request)You can use this endpoint to perform the following operations:IntercomHttpResponse<Tag>create(TagsCreateRequestBody request, RequestOptions requestOptions)You can use this endpoint to perform the following operations:IntercomHttpResponse<java.lang.Void>delete(DeleteTagRequest request)You can delete the details of tags that are on the workspace by passing in the id.IntercomHttpResponse<java.lang.Void>delete(DeleteTagRequest request, RequestOptions requestOptions)You can delete the details of tags that are on the workspace by passing in the id.IntercomHttpResponse<Tag>find(FindTagRequest request)You can fetch the details of tags that are on the workspace by their id.IntercomHttpResponse<Tag>find(FindTagRequest request, RequestOptions requestOptions)You can fetch the details of tags that are on the workspace by their id.IntercomHttpResponse<TagList>list()You can fetch a list of all tags for a given workspace.IntercomHttpResponse<TagList>list(RequestOptions requestOptions)You can fetch a list of all tags for a given workspace.IntercomHttpResponse<Tag>tagContact(TagContactRequest request)You can tag a specific contact.IntercomHttpResponse<Tag>tagContact(TagContactRequest request, RequestOptions requestOptions)You can tag a specific contact.IntercomHttpResponse<Tag>tagConversation(TagConversationRequest request)You can tag a specific conversation.IntercomHttpResponse<Tag>tagConversation(TagConversationRequest request, RequestOptions requestOptions)You can tag a specific conversation.IntercomHttpResponse<Tag>tagTicket(TagTicketRequest request)You can tag a specific ticket.IntercomHttpResponse<Tag>tagTicket(TagTicketRequest request, RequestOptions requestOptions)You can tag a specific ticket.IntercomHttpResponse<Tag>untagContact(UntagContactRequest request)You can remove tag from a specific contact.IntercomHttpResponse<Tag>untagContact(UntagContactRequest request, RequestOptions requestOptions)You can remove tag from a specific contact.IntercomHttpResponse<Tag>untagConversation(UntagConversationRequest request)You can remove tag from a specific conversation.IntercomHttpResponse<Tag>untagConversation(UntagConversationRequest request, RequestOptions requestOptions)You can remove tag from a specific conversation.IntercomHttpResponse<Tag>untagTicket(UntagTicketRequest request)You can remove tag from a specific ticket.IntercomHttpResponse<Tag>untagTicket(UntagTicketRequest request, RequestOptions requestOptions)You can remove tag from a specific ticket.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
RawTagsClient
public RawTagsClient(ClientOptions clientOptions)
-
-
Method Detail
-
tagContact
public IntercomHttpResponse<Tag> tagContact(TagContactRequest request)
You can tag a specific contact. This will return a tag object for the tag that was added to the contact.
-
tagContact
public IntercomHttpResponse<Tag> tagContact(TagContactRequest request, RequestOptions requestOptions)
You can tag a specific contact. This will return a tag object for the tag that was added to the contact.
-
untagContact
public IntercomHttpResponse<Tag> untagContact(UntagContactRequest request)
You can remove tag from a specific contact. This will return a tag object for the tag that was removed from the contact.
-
untagContact
public IntercomHttpResponse<Tag> untagContact(UntagContactRequest request, RequestOptions requestOptions)
You can remove tag from a specific contact. This will return a tag object for the tag that was removed from the contact.
-
tagConversation
public IntercomHttpResponse<Tag> tagConversation(TagConversationRequest request)
You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation.
-
tagConversation
public IntercomHttpResponse<Tag> tagConversation(TagConversationRequest request, RequestOptions requestOptions)
You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation.
-
untagConversation
public IntercomHttpResponse<Tag> untagConversation(UntagConversationRequest request)
You can remove tag from a specific conversation. This will return a tag object for the tag that was removed from the conversation.
-
untagConversation
public IntercomHttpResponse<Tag> untagConversation(UntagConversationRequest request, RequestOptions requestOptions)
You can remove tag from a specific conversation. This will return a tag object for the tag that was removed from the conversation.
-
list
public IntercomHttpResponse<TagList> list()
You can fetch a list of all tags for a given workspace.
-
list
public IntercomHttpResponse<TagList> list(RequestOptions requestOptions)
You can fetch a list of all tags for a given workspace.
-
create
public IntercomHttpResponse<Tag> create(TagsCreateRequestBody request)
You can use this endpoint to perform the following operations:1. Create a new tag: You can create a new tag by passing in the tag name as specified in "Create or Update Tag Request Payload" described below.
2. Update an existing tag: You can update an existing tag by passing the id of the tag as specified in "Create or Update Tag Request Payload" described below.
3. Tag Companies: You can tag single company or a list of companies. You can tag a company by passing in the tag name and the company details as specified in "Tag Company Request Payload" described below. Also, if the tag doesn't exist then a new one will be created automatically.
4. Untag Companies: You can untag a single company or a list of companies. You can untag a company by passing in the tag id and the company details as specified in "Untag Company Request Payload" described below.
5. Tag Multiple Users: You can tag a list of users. You can tag the users by passing in the tag name and the user details as specified in "Tag Users Request Payload" described below.
Each operation will return a tag object.
-
create
public IntercomHttpResponse<Tag> create(TagsCreateRequestBody request, RequestOptions requestOptions)
You can use this endpoint to perform the following operations:1. Create a new tag: You can create a new tag by passing in the tag name as specified in "Create or Update Tag Request Payload" described below.
2. Update an existing tag: You can update an existing tag by passing the id of the tag as specified in "Create or Update Tag Request Payload" described below.
3. Tag Companies: You can tag single company or a list of companies. You can tag a company by passing in the tag name and the company details as specified in "Tag Company Request Payload" described below. Also, if the tag doesn't exist then a new one will be created automatically.
4. Untag Companies: You can untag a single company or a list of companies. You can untag a company by passing in the tag id and the company details as specified in "Untag Company Request Payload" described below.
5. Tag Multiple Users: You can tag a list of users. You can tag the users by passing in the tag name and the user details as specified in "Tag Users Request Payload" described below.
Each operation will return a tag object.
-
find
public IntercomHttpResponse<Tag> find(FindTagRequest request)
You can fetch the details of tags that are on the workspace by their id. This will return a tag object.
-
find
public IntercomHttpResponse<Tag> find(FindTagRequest request, RequestOptions requestOptions)
You can fetch the details of tags that are on the workspace by their id. This will return a tag object.
-
delete
public IntercomHttpResponse<java.lang.Void> delete(DeleteTagRequest request)
You can delete the details of tags that are on the workspace by passing in the id.
-
delete
public IntercomHttpResponse<java.lang.Void> delete(DeleteTagRequest request, RequestOptions requestOptions)
You can delete the details of tags that are on the workspace by passing in the id.
-
tagTicket
public IntercomHttpResponse<Tag> tagTicket(TagTicketRequest request)
You can tag a specific ticket. This will return a tag object for the tag that was added to the ticket.
-
tagTicket
public IntercomHttpResponse<Tag> tagTicket(TagTicketRequest request, RequestOptions requestOptions)
You can tag a specific ticket. This will return a tag object for the tag that was added to the ticket.
-
untagTicket
public IntercomHttpResponse<Tag> untagTicket(UntagTicketRequest request)
You can remove tag from a specific ticket. This will return a tag object for the tag that was removed from the ticket.
-
untagTicket
public IntercomHttpResponse<Tag> untagTicket(UntagTicketRequest request, RequestOptions requestOptions)
You can remove tag from a specific ticket. This will return a tag object for the tag that was removed from the ticket.
-
-