Skip to contents

Get ADRs for a list of compounds

Usage

api_adr_compound(
  creds,
  compounds,
  lang = c("english", "german", "german-simple"),
  details = FALSE
)

Arguments

creds

A list containing the access token and host

compounds

A vector with the compound names

lang

A string with the language. One of english, german or german-simple

details

Logical. Whether to return detailed ADR information. Default FALSE.

Value

A data frame with the ADRs

See also

api_login() to retrieve the login object.

Examples

if (FALSE) { # \dontrun{
creds <- api_login("https://api.example.com", "username", "password", "user")
api_adr_compound(creds, c("Aspirin", "Ibuprofen"), lang = "english")
} # }