get_all_ticket_metrics {zdeskR} | R Documentation |
Get Metrics on All Zendesk Tickets
Description
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.
Usage
get_all_ticket_metrics(email_id, token, subdomain)
Arguments
email_id |
Zendesk Email Id (username). |
token |
Zendesk API token. |
subdomain |
Your organization's Zendesk sub-domain. |
Details
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.
Value
Data Frame with metrics for all tickets
References
https://developer.zendesk.com/rest_api/docs/support/ticket_metrics
Examples
## Not run:
ticket_metrics <- get_all_ticket_metrics(email_id, token, subdomain)
## End(Not run)
[Package zdeskR version 0.4.1 Index]