Skip to contents

Internal function to retrieve json content from ID

Usage

get_id(deimsid, resource = "sites", test, ...)

Arguments

deimsid

A character. It is the DEIMS ID of the site, activity or dataset from DEIMS-SDR website. DEIMS ID information here.

resource

Character: one among "sites" (default), "activities" or "datasets" ("networks" currently not tested).

test

Logical: if TRUE, content is not retrieved from https://deims.org but internally (only for some defined IDs). Used for testing purposes to avoid errors in case or HTTP error 500. If missing, the content of the internal variable

...

Arguments to be passed to httr::RETRY().

jj

a character

Value

A character containing the json content, and an attribute status.

Author

Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it

Luigi Ranghetti, phD (2021) luigi@ranghetti.info

Paolo Tagliolato, PhD (2021) tagliolato.p@irea.cnr.it