Closed lwiniwar closed 2 years ago
example:
library(httr)
library(jsonlite)
req <- list( data = c("{\"properties.species\":\"Abies alba\"}"))
res <- POST("http://syssifoss.geog.uni-heidelberg.de:5001/search", body = req, encode="form")
print(rawToChar(res$content))
data = fromJSON(rawToChar(res$content))
updated example due to changes in the API:
library(httr)
library(jsonlite)
req <- list( query = c("{\"properties.species\":\"Abies alba\"}"))
res <- POST("http://syssifoss.geog.uni-heidelberg.de:5001/search", body = req, encode="form")
print(rawToChar(res$content))
data = fromJSON(rawToChar(res$content))
In GitLab by @bhoefle-3dgeo on Mar 16, 2022, 18:06