A wrapper to the new
method defined in the Apikey
class.
create_apikey_profile(
api_key = getPass::getPass("Enter/Paste an API key: "),
key_name = "API-KEY"
)
a string for API key
a string for an API Key name. Default is API-KEY
An object of class Apikey
if (FALSE) {
# Create a profile with API key named "API-KEY"
myProfile <- create_apikey_profile()
myProfile
# Create a profile with an API key named "key"
myProfile2 <- create_apikey_profile(key_name = "key")
myProfile2
}