Skip to contents

Parallel load from P2/Active Campaign API at url with key api_key. Loads pages of 100 records until it reaches the total.

Usage

p2_query_table_length(url, api_key = keyring::key_get("P2_API"))

p2_query_api(
  url,
  api_key = keyring::key_get("P2_API"),
  offset = NULL,
  max_len = NULL,
  jobs = NULL
)

Arguments

url

Active Campaign API url to query

api_key

Active Campaign API key, defaults to keyring::key_get("P2_API")

offset

integer offset from the start of the query to return; default is 0.

max_len

integer maximum number of rows to load, defaults to p2_query_table_length() - offset.

jobs

data.table of jobs to run instead of building a jobs based on offset and max_len

Value

JSON object as a list

Functions

  • p2_query_table_length(): get the length of the p2 API table at url