Skip to contents

Set API key as an environment variable

Usage

setAPI(api_key)

Arguments

api_key

The API key to set

Value

No return value, called for side effects.

Note

Please be aware you have to agree to the terms of service of the API provider. Any app that uses the API key is subject to the terms of service. Also, please be aware that the API key is a sensitive information.

See also

https://makersuite.google.com/app/apikey

Examples

if (FALSE) { # \dontrun{
setAPI("my_api_key")
} # }