brickset_auth.Rd
Passes username, password, and API key to brickset API, receives a userHash in response. The userHash is stored in a global .brickset_hash variable if it is retrieved successfully; the function returns true for success and false for failure.
brickset_auth(key = brickset_key(), username = brickset_username(), password = brickset_password(), cache = T)
key | API key. If NULL, the function looks for .brickset_key in the environment |
---|---|
username | username. If NULL, the function looks for .brickset_username in the environment |
password | password. If NULL, the function looks for .brickset_password in the environment |
cache | cache key, username, password for later (default TRUE) |
TRUE if authentication succeeds, FALSE otherwise.
# NOT RUN { brickset_auth() brickset_auth(key = "your-key", username = "your_username", password = "hunter2") # }