Store and retrieve credentials using environment variables.
Usage
meetupr_key_set(key, value, client_name = get_client_name())
meetupr_key_get(key, client_name = get_client_name(), error = TRUE)
meetupr_key_delete(key, client_name = get_client_name())Arguments
- key
Key name:
"client_key","client_secret","encrypt_path","encrypt_pwd","jwt_token"or"jwt_issuer".- value
Value to be stored.
- client_name
A string representing the name of the client. By default, it is set to
"meetupr"and retrieved from theMEETUPR_CLIENT_NAMEenvironment variable.- error
Throw error if key not found. Default TRUE.
Value
meetupr_key_set() and meetupr_key_delete() return
NULL (invisibly), and meetupr_key_get() returns a
character string or NA.
Details
This is an alias of meetupr_credentials with hyphenated envvar names.
Credentials are stored as environment variables with the pattern
{client_name}-{key} (e.g., meetupr-client_key).
client_key: OAuth client IDclient_secret: OAuth client secretencrypt_path: Path to encrypted token fileencrypt_pwd: Password for encrypted tokenjwt_token: JWT token for service account authenticationjwt_issuer: JWT issuer, Meetup account number
