get_ticket_audits {zdeskR} | R Documentation |
Get Zendesk Ticket Audits
Description
This function takes your Email Id, authentication token, sub-domain and ticket id as parameters and gets the first 100 audits. Pagination to get additional audits was not set up in the first version of this function.
Usage
get_ticket_audits(email_id, token, subdomain, ticket_id)
Arguments
email_id |
Zendesk Email Id (username). |
token |
Zendesk API token. |
subdomain |
Your organization's Zendesk sub-domain. |
ticket_id |
Integer with Zendesk ticket id. |
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
a Data Frame containing first 100 audits for the ticket, with the events as a nested data frame in each row.
References
https://developer.zendesk.com/api-reference/ticketing/tickets/ticket_audits/
Examples
## Not run:
all_tickets <- get_ticket_audits(email_id, token, subdomain,
ticket_id = 123456
)
## End(Not run)
[Package zdeskR version 0.6.0 Index]