get_response: Sends a query to Zendesk and automatically paginates the...

Description Usage Arguments Value Examples

Description

Sends a query to Zendesk and automatically paginates the results

Usage

1
2
get_response(connection, url, query = list(), page_limit = Inf,
  parsing = "R")

Arguments

url

API edge to query

query

List of query parameters for the edge

page_limit

Number of pages to query

parsing

If 'JSON' then returns JSON, if 'R' then converts JSON to R lists.

Value

List of paginated responses from Zendesk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# get all ads in avaible to the token for a particular account
## Not run: 
get_response(
   url = "https://graph.facebook.com/v2.8/act_16429592/ads",
   query = list(
       access_token = access_token,
       limit = 1000,
       fields = "id,adset_id,campaign_id,account_id,configured_status,created_time,creative,effective_status" # ad_review_feedback
   ),
   parsing = 'JSON'
)

## End(Not run)

datalove/zenner documentation built on May 14, 2019, 7:45 p.m.