library(ASAPI) library(jsonlite) library(kableExtra) email = "user.example@agrospace.cl" password = "contra1234" auth = asapi_auth(email = email,password = password) client = auth$client api_key = auth$api_key user = auth$user
print(auth)
asapi_client_get(client, email, api_key)
user = asapi_user_get(client, email, user, api_key) counted_calls=user$counted_calls toJSON(user,pretty = TRUE) kbl(user$counted_calls) %>% kable_styling(bootstrap_options = c("hover", "condensed")) %>% kable_material_dark()
farm = "farm1example" shp = asapi_farm_get(client, farm, email, api_key) toJSON(shp$response,pretty = TRUE)
raster::plot(shp$shp)
tableid = "levelzero" sensor = "S2SR" index = "NDVI" date_start="2021-01-01" date_end="2021-02-01" table = asapi_table(client, farm, tableid, sensor, index, date_start, date_end, email, api_key)
kbl(table) %>% kable_styling(bootstrap_options = c("hover", "condensed")) %>% kable_material_dark()
date = table$date[1] rst = asapi_image(client, farm, sensor, index, date, email, api_key) raster::plot(rst$rst)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.