ticket_search: Returns ticket data for a provided Zendesk search query

View source: R/ticket_search.R

ticket_searchR Documentation

Description

It takes your Email Id, authentication token, sub-domain and search query and returns all the tickets that meet the search criteria. 100 tickets are returned at a time. If your search query has many results, the function may run for a long time as it goes through each page of results.

Usage

ticket_search(email_id, token, subdomain, query)

Arguments

email_id

Zendesk Email Id (username).

token

Zendesk API token.

subdomain

Your organization's Zendesk sub-domain.

query

Zendesk search query to execute.

Details

It's not a good practice to write down these authentication parameters in your code. There are various methods and packages available that are more secure; this package doesn't require you to use any one in particular.

Value

Data Frame with user details

References

https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#list-search-results

Examples

## Not run: 
search_results <- ticket_search(email_id, token, subdomain,
query = "query=satisfaction:goodwithcomment updated>24hours")

## End(Not run)

zdeskR documentation built on July 2, 2025, 1:08 a.m.

Related to ticket_search in zdeskR...