Skip to contents

Execute Datim Query

Usage

datim_execute_query(url, username, password, flatten = FALSE)

Arguments

url

API Base url & all query parameters

username

Datim username, recommend using `glamr::datim_user()`

password

Datim password, recommend using `glamr::datim_pwd()`

flatten

Should query json result be flatten? Default is false

Value

returns query results as json object, or NULL when error occurs.

Examples

if (FALSE) { # \dontrun{
  library(grabr)

  datim_execute_query(
    url = 'https://www.datim.org/api/sqlViews/<uid>?format=json',
    username =glamr::datim_user(),
    password =glamr::datim_pwd(),
    flatten = TRUE
  )
} # }