Title: | Zendesk API Wrapper |
---|---|
Description: | This package provides an R wrapper for the Zendesk API |
Authors: | Tanya Cashorali |
Maintainer: | Tanya Cashorali <[email protected]> |
License: | GPL-2 |
Version: | 0.4 |
Built: | 2025-03-10 05:50:30 UTC |
Source: | https://github.com/tcash21/zendeskr |
This function is used to retrieve information on all registered organizations in your Zendesk organization
getAllOrganizations()
getAllOrganizations()
This function will return a data.frame containing all fields on every organization. The tags key will be returned within the data.frame as a list.
returns a data.frame of all organizations
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/organizations.html
## Not run: ## This requires Zendesk authentication organizations <- getAllOrganizations() ## End(Not run)
## Not run: ## This requires Zendesk authentication organizations <- getAllOrganizations() ## End(Not run)
This function is used to return all satisfaction ratings for your organization.
getAllSatisfactionRatings()
getAllSatisfactionRatings()
This function can only be used by Admins within your organization. Satisfaction Ratings are ordered chronologically by created date, from oldest to newest.
returns a data.frame of all satisfaction ratings ordered chronologically by created date, from oldest to newest.
John Hornbeck
http://developer.zendesk.com/documentation/rest_api/satisfaction_ratings.html
## Not run: ## This requires Zendesk authentication satisfaction_ratings <- getAllSatisfactionRatings() ## End(Not run)
## Not run: ## This requires Zendesk authentication satisfaction_ratings <- getAllSatisfactionRatings() ## End(Not run)
This function is used to retrieve all ticket metrics from all tickets in your Zendesk organization
getAllTicketMetrics()
getAllTicketMetrics()
This function will return a data.frame containing all ticket metrics, such as latest_comment_added_at, first_resolution_time_in_minutes, etc. on every ticket.
returns a data.frame of all ticket metrics for all tickets
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/ticket_metrics.html
## Not run: ## This requires Zendesk authentication ticket_metrics <- getAllTicketMetrics() ## End(Not run)
## Not run: ## This requires Zendesk authentication ticket_metrics <- getAllTicketMetrics() ## End(Not run)
This function is used to return all tickets stored in your organization.
getAllTickets()
getAllTickets()
This function can only be used by Admins within your organization. Tickets are ordered chronologically by created date, from oldest to newest.
returns a data.frame of all tickets ordered chronologically by created date, from oldest to newest.
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/tickets.html
## Not run: ## This requires Zendesk authentication tickets <- getAllTickets() ## End(Not run)
## Not run: ## This requires Zendesk authentication tickets <- getAllTickets() ## End(Not run)
This function is used to retrieve information on all registered Zendesk users in your organization
getAllUsers()
getAllUsers()
This function will return a data.frame containing all fields on every user in your organization. The photo key will be returned within the data.frame as a list.
returns a data.frame of all users
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/users.html
## Not run: ## This requires Zendesk authentication zendesk('username', 'password', 'https://help.example.com') users <- getAllUsers() ## End(Not run)
## Not run: ## This requires Zendesk authentication zendesk('username', 'password', 'https://help.example.com') users <- getAllUsers() ## End(Not run)
This function is used to return ticket information for a given ticket ID
getTicket(ticket.id)
getTicket(ticket.id)
ticket.id |
A Zendesk ticket ID (e.g. 888) |
This function will return a data.frame of ticket information for a given ticket.id. The fields key will be returned within the data.frame as a list.
returns a data.frame of ticket information for the given ticket.id
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/tickets.html
## Not run: ## This requires Zendesk authentication ticket <- getTicket(ticket.id) ## End(Not run)
## Not run: ## This requires Zendesk authentication ticket <- getTicket(ticket.id) ## End(Not run)
This function is used to return all ticket audits for a given ticket ID.
getTicketAudits(ticket.id)
getTicketAudits(ticket.id)
ticket.id |
A Zendesk ticket ID (e.g. 888) |
Audits are a read-only history of all updates to a ticket and the events that occur as a result of these updates. When a Ticket is updated in Zendesk, we store an Audit. Each Audit represents a single update to the Ticket, and each Audit includes a list of changes, such as changes to ticket fields, addition of a new comment, addition or removal of tags, notifications sent to groups, assignees, requesters and CCs
returns a data.frame of all ticket audits for a given ticket ID.
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/ticket_audits.html
## Not run: ## This requires Zendesk authentication audits <- getTicketAudits(ticket.id) ## End(Not run)
## Not run: ## This requires Zendesk authentication audits <- getTicketAudits(ticket.id) ## End(Not run)
Utility function to unlist the columns of each data.frame where necessary.
unlistDataFrame(dataframe)
unlistDataFrame(dataframe)
dataframe |
A data.frame containing columns of lists to be unlisted. |
This function will return a data.frame with the list type columns unlisted except where a column is a list of lists.
returns a data.frame
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/tickets.html
## Not run: ## This requires Zendesk authentication unlistDataFrame(dataframe) ## End(Not run)
## Not run: ## This requires Zendesk authentication unlistDataFrame(dataframe) ## End(Not run)
This function is used to create a Zendesk.com API session.
zendesk(username, password, url)
zendesk(username, password, url)
username |
Your Zendesk username. |
password |
Your Zendesk password (or API token). |
url |
Your organization's Zendesk URL (e.g. https://help.basho.com). |
This function will initialize a Zendesk.com API session.
Initializes a Zendesk.com API session. Will throw an error if all 3 parameters are not passed to the function.
Tanya Cashorali
http://developer.zendesk.com/documentation/rest_api/introduction.html
## Not run: ## This requires Zendesk authentication zendesk('username', 'password', 'https://help.basho.com') ## End(Not run)
## Not run: ## This requires Zendesk authentication zendesk('username', 'password', 'https://help.basho.com') ## End(Not run)
A helper function for making api calls in zendesk_get funtion
zendesk_call(link, zd_call, ...)
zendesk_call(link, zd_call, ...)
link |
the full api endpoint link to be called |
zd_call |
the endpoint to call |
... |
any valid parameter to be passed from zendesk_get |
This function will make one api call to the provided link and return a list of the dataframe with the content of the api call as well as the next link provided by the cull (will be null if there are no more pages)
a list of the resulting dataframe from one api call and its next link
This is a a general purpose function for any valid Zendesk API endpoint
zendesk_get(zd_call, ...)
zendesk_get(zd_call, ...)
zd_call |
the api call (tickets, users, etc.) |
... |
any valid parameters for the associated call |
This function will return a data.frame of the results returned from the zendesk API for the endpoint passed to it. Any valid parameters can be passed to refine the request, for some endpoints there are required parameters.
returns a data.frame of the results from the given call
## Not run: ## This requires Zendesk authentication tickets <- zendesk_get('tickets') ## End(Not run)
## Not run: ## This requires Zendesk authentication tickets <- zendesk_get('tickets') ## End(Not run)
This package provides an R wrapper to the Zendesk API.
Package: | zendeskR |
Type: | Package |
Version: | 0.1 |
Date: | 2012-07-11 |
License: | Simplified BSD |
Tanya Cashorali Tanya Cashorali: <[email protected]>
http://developer.zendesk.com/documentation/rest_api/introduction.html