Download Something from BacDive

download(URL, userpwd = paste(get_credentials(), collapse = ":"))

Arguments

URL

represented by a correctly encoded character string with spaces, thanks to utils::URLencode.

userpwd

A character string of the format BacDive_email:BacDive_password. Retrieved from .Renviron my default, but also used with something else by the tests.

Value

A serialised JSON string.