getUserHash {brickset} | R Documentation |
Returns the user hash from Brickset.
Description
Many of the Brickset API calls require a user to login. This function wraps
the login
function to managing the user hash returned from
login across multiple API calls. It will also ensure that the hash is still
valid and if it expired a new hash will be requested.
Usage
getUserHash(
username = getOption("brickset_username"),
password = getOption("brickset_password"),
key = getOption("brickset_key")
)
Arguments
username |
the Brickset username. |
password |
the Brickset password. |
key |
the Brickset API key. |
Details
Brickset API documentation is available here: https://brickset.com/article/52664/api-version-3-documentation/
Value
the user hash for the current API session.
[Package brickset version 2024.0.0 Index]