Description Usage Arguments Details Value Examples
ticket
queries the Freshdesk API and returns data related to a ticket.
1 2 3 4 | ticket(client, ticket_id, tickets_path = "/api/v2/tickets", include = NULL,
valid_include_parameters = ticket_include_parameters,
priorities_lookup = ticket_priorities, sources_lookup = ticket_sources,
status_lookup = ticket_status)
|
client |
The Freshdesk API client object (see |
ticket_id |
The ID of the ticket you would like to view. |
tickets_path |
The path of the tickets API. Defaults to |
include |
Optional include a vector of query string parameters. |
valid_include_parameters |
Optional vector of valid include parameters. Defaults to
|
priorities_lookup |
Optional dataframe of ticket priorities and associated values.
Defaults to |
sources_lookup |
Optional dataframe of ticket sources and associated values.
Defaults to |
status_lookup |
Optional dataframe of ticket status and associated values.
Defaults to |
This function queries the Freshdesk API based on ticket id to view the details regarding this ticket. You can optionally include conversation, requester, company or extra stats data.
A list with the attributes of the ticket.
1 2 3 4 5 6 7 | ## Not run:
fc <- freshdesk_client("your-domain", "your-api-key")
# view ticket with id = 3 and include addtional company and requester data
t <- ticket(fc, 3, include = "requester,company")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.