Class TagsClient
- java.lang.Object
-
- com.intercom.api.resources.unstable.tags.TagsClient
-
public class TagsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description TagsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagattachTagToContact(AttachTagToContactRequest request)You can tag a specific contact.TagattachTagToContact(AttachTagToContactRequest request, RequestOptions requestOptions)You can tag a specific contact.TagattachTagToConversation(AttachTagToConversationRequest request)You can tag a specific conversation.TagattachTagToConversation(AttachTagToConversationRequest request, RequestOptions requestOptions)You can tag a specific conversation.TagattachTagToTicket(AttachTagToTicketRequest request)You can tag a specific ticket.TagattachTagToTicket(AttachTagToTicketRequest request, RequestOptions requestOptions)You can tag a specific ticket.TagcreateTag(CreateTagRequestBody request)You can use this endpoint to perform the following operations:TagcreateTag(CreateTagRequestBody request, RequestOptions requestOptions)You can use this endpoint to perform the following operations:voiddeleteTag(DeleteTagRequest request)You can delete the details of tags that are on the workspace by passing in the id.voiddeleteTag(DeleteTagRequest request, RequestOptions requestOptions)You can delete the details of tags that are on the workspace by passing in the id.TagdetachTagFromContact(DetachTagFromContactRequest request)You can remove tag from a specific contact.TagdetachTagFromContact(DetachTagFromContactRequest request, RequestOptions requestOptions)You can remove tag from a specific contact.TagdetachTagFromConversation(DetachTagFromConversationRequest request)You can remove tag from a specific conversation.TagdetachTagFromConversation(DetachTagFromConversationRequest request, RequestOptions requestOptions)You can remove tag from a specific conversation.TagdetachTagFromTicket(DetachTagFromTicketRequest request)You can remove tag from a specific ticket.TagdetachTagFromTicket(DetachTagFromTicketRequest request, RequestOptions requestOptions)You can remove tag from a specific ticket.TagfindTag(FindTagRequest request)You can fetch the details of tags that are on the workspace by their id.TagfindTag(FindTagRequest request, RequestOptions requestOptions)You can fetch the details of tags that are on the workspace by their id.TagListlistTags()You can fetch a list of all tags for a given workspace.TagListlistTags(RequestOptions requestOptions)You can fetch a list of all tags for a given workspace.RawTagsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
TagsClient
public TagsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawTagsClient withRawResponse()
Get responses with HTTP metadata like headers
-
attachTagToContact
public Tag attachTagToContact(AttachTagToContactRequest request)
You can tag a specific contact. This will return a tag object for the tag that was added to the contact.
-
attachTagToContact
public Tag attachTagToContact(AttachTagToContactRequest request, RequestOptions requestOptions)
You can tag a specific contact. This will return a tag object for the tag that was added to the contact.
-
detachTagFromContact
public Tag detachTagFromContact(DetachTagFromContactRequest request)
You can remove tag from a specific contact. This will return a tag object for the tag that was removed from the contact.
-
detachTagFromContact
public Tag detachTagFromContact(DetachTagFromContactRequest 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.
-
attachTagToConversation
public Tag attachTagToConversation(AttachTagToConversationRequest request)
You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation.
-
attachTagToConversation
public Tag attachTagToConversation(AttachTagToConversationRequest request, RequestOptions requestOptions)
You can tag a specific conversation. This will return a tag object for the tag that was added to the conversation.
-
detachTagFromConversation
public Tag detachTagFromConversation(DetachTagFromConversationRequest request)
You can remove tag from a specific conversation. This will return a tag object for the tag that was removed from the conversation.
-
detachTagFromConversation
public Tag detachTagFromConversation(DetachTagFromConversationRequest 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.
-
listTags
public TagList listTags()
You can fetch a list of all tags for a given workspace.
-
listTags
public TagList listTags(RequestOptions requestOptions)
You can fetch a list of all tags for a given workspace.
-
createTag
public Tag createTag(CreateTagRequestBody 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.
-
createTag
public Tag createTag(CreateTagRequestBody 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.
-
findTag
public Tag findTag(FindTagRequest request)
You can fetch the details of tags that are on the workspace by their id. This will return a tag object.
-
findTag
public Tag findTag(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.
-
deleteTag
public void deleteTag(DeleteTagRequest request)
You can delete the details of tags that are on the workspace by passing in the id.
-
deleteTag
public void deleteTag(DeleteTagRequest request, RequestOptions requestOptions)
You can delete the details of tags that are on the workspace by passing in the id.
-
attachTagToTicket
public Tag attachTagToTicket(AttachTagToTicketRequest request)
You can tag a specific ticket. This will return a tag object for the tag that was added to the ticket.
-
attachTagToTicket
public Tag attachTagToTicket(AttachTagToTicketRequest request, RequestOptions requestOptions)
You can tag a specific ticket. This will return a tag object for the tag that was added to the ticket.
-
detachTagFromTicket
public Tag detachTagFromTicket(DetachTagFromTicketRequest request)
You can remove tag from a specific ticket. This will return a tag object for the tag that was removed from the ticket.
-
detachTagFromTicket
public Tag detachTagFromTicket(DetachTagFromTicketRequest 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.
-
-