if (FALSE) {
# List studies with local API
# default result content in R object (auto parsed)
api_get(opts = list(host = "http://0.0.0.0:8080"),
endpoint = NULL,
parse_result = NULL)
# You can force parse options as text and encoding to UTF-8
api_get(opts = list(host = "http://0.0.0.0:8080"),
endpoint = NULL,
parse_result = "text",
encoding = "UTF-8")
# You can change or delete `default_endpoint`
# no use `default_endpoint`
api_get(opts = list(host = "http://0.0.0.0:8080"),
endpoint = NULL,
default_endpoint = NULL,
parse_result = "text",
encoding = "UTF-8")
# replace `default_endpoint`
api_get(opts = list(host = "http://0.0.0.0:8080"),
endpoint = NULL,
default_endpoint = "myfolder/myfolder",
parse_result = "text",
encoding = "UTF-8")
}
Run the code above in your browser using DataLab