gp_api_query | R Documentation |
Constructs a query and requests selected information from the from the galacticpolymath.com/api
gp_api_query(
keys = NULL,
numID = NULL,
output_tibble = TRUE,
dev = FALSE,
id = NULL,
sort_by = "numID"
)
query_gp_api(
keys = NULL,
numID = NULL,
output_tibble = TRUE,
dev = FALSE,
id = NULL,
sort_by = "numID"
)
keys |
character vector; which front-matter keys do you want from lessons? default:NULL; use "basic" as shorthand for c("numID","_id","Title"). See all options with |
numID |
is a vector of numIDs for unit(s) you want. default=NULL returns all units |
output_tibble |
return values as a "tibble"? otherwise, list; default=TRUE |
dev |
logical; if FALSE (default), gets catalog from the production gp-catalog. Otherwise, from the dev catalog. |
id |
is a vector of |
sort_by |
a character giving the column name to sort by. Default="numID" |
list of results or tbl_json
query_gp_api()
: Alias for gp_api_query
Other GP API:
gp_api_get_token()
,
gp_api_query_users()
,
gp_api_unit_delete()
,
gp_api_unit_insert()
,
gp_api_unit_replace()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.