View source: R/get_all_ticket_metrics.R
get_all_ticket_metrics | R Documentation |
This function takes your Email Id, authentication token, and sub-domain and parses all the tickets and its corresponding metrics in a list. Since each iteration only returns 100 tickets at a time you must run the loop until the "has_more" parameter is equal to FALSE.
get_all_ticket_metrics(email_id, token, subdomain)
email_id |
Zendesk Email Id (username). |
token |
Zendesk API token. |
subdomain |
Your organization's Zendesk sub-domain. |
Its 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 metrics for all tickets
https://developer.zendesk.com/rest_api/docs/support/ticket_metrics
## Not run:
ticket_metrics <- get_all_ticket_metrics(email_id, token, subdomain)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.