brickset_api: Get API options

Description Usage Arguments

View source: R/scrape_brickset.R

Description

This is a general helper for handling the brickset API.

Usage

1
2
3
4
brickset_api(where, auth_args = list(key = brickset_key(), username =
  brickset_username(), password = brickset_password(), userHash =
  brickset_hash(), authtime = brickset_authtime()),
  default_args = list(), ...)

Arguments

where

API endpoint (e.g. getTheme, getSets)

auth_args

list containing key, username, password, userHash (if known), and authtime (if known). If list is full of NULL values (default), they will be substituted from the environment. Environment variables should be named .brickset_key, .brickset_username, .brickset_password, .brickset_authtime, and .brickset_hash, though the last two should generally not be user-specified. Auth variables are only necessary if variables are not cached in the global environment; if the global variables exist, this argument can be ignored entirely.

default_args

default arguments for the generic api. Should be supplied by calling function

...

other API arguments


srvanderplas/LegoR documentation built on Nov. 5, 2019, 9:17 a.m.