Description Usage Arguments Details Value Examples
freshdesk_api_call
makes a single query the Freshdesk API and returns a result.
1 | freshdesk_api_call(client, path, query = NULL)
|
client |
The Freshdesk API client object (see |
path |
The API query path. |
query |
API query string. |
This function queries the Freshdesk API based on a path and returns a freshdesk_api
object containing the http response, the parsed content, and the API rate limit status.
An S3 object contaitning the following attributes:
content
: the parsed content of the response.
path
: the API query path.
response
: the complete httr reponse object.
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.