Description Usage Arguments Details Value Examples
freshdesk_api
queries the Freshdesk API and returns a result.
1 | freshdesk_api(client, path, query = NULL, per_page = NULL, pages = Inf)
|
client |
The Freshdesk API client object (see |
path |
The API query path. |
query |
API query string. |
per_page |
The number of results per page. The default is 30. Values over 100 will result in an error being raised as it wis not allowed by the Freshdesk API. |
pages |
By default, all pages will be returned. Specify this value along with the
|
This function queries the Freshdesk API based on a path and returns a freshdesk_api
object containing the http responses, the parsed content, and the API rate limit status. If the
results are paginated, all of the results will be returned up to the number of pages specified
(all pages by default). If the results span multiple pages, a list of http responses and the
rate limit information from the final call is returned in the freshdesk_api
object along
with all the data combined.
An S3 object contaitning the following attributes:
content
: the parsed content of the response.
path
: the API query path.
response
: the complete httr reponse objects.
rate_limit_remaining
: the API calls remaining in the current period.
rate_limit_total
: the total API calls for the current period.
1 2 3 4 5 6 | ## Not run:
fc <- freshdesk_client("foo", "MyAPIKey")
apidata <- freshdesk_api(fc, "/api/v2/tickets/3")
apidata$rate_limit_remaining
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.