View source: R/ticket_search.R
ticket_search | R Documentation |
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.
ticket_search(email_id, token, subdomain, query)
email_id |
Zendesk Email Id (username). |
token |
Zendesk API token. |
subdomain |
Your organization's Zendesk sub-domain. |
query |
Zendesk search query to execute. |
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.
Data Frame with user details
https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#list-search-results
## Not run:
search_results <- ticket_search(email_id, token, subdomain,
query = "query=satisfaction:goodwithcomment updated>24hours")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.