freshdesk_api_call: Calls Freshdesk API

Description Usage Arguments Details Value Examples

Description

freshdesk_api_call makes a single query the Freshdesk API and returns a result.

Usage

1
freshdesk_api_call(client, path, query = NULL)

Arguments

client

The Freshdesk API client object (see freshdesk_client).

path

The API query path.

query

API query string.

Details

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.

Value

An S3 object contaitning the following attributes:

Examples

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)

jjanuszczak/freshdeskr documentation built on May 29, 2019, 11:05 p.m.