Closed dshorthouse closed 1 year ago
Aha! Thanks for this. I was receiving 400s when attempting the following in ruby, but now it appears to now work as I assume it would in a traditional download:
response = RestClient::Request.execute(
method: :post,
headers: { "Content-Type": "application/json", accept: :json },
url: "https://api.gbif.org/v1/occurrence/search/predicate",
content_type: :json,
payload: { predicate: { type: "and", predicates: [
{
type: "equals",
key: "BASIS_OF_RECORD",
value: "HUMAN_OBSERVATION"
},
{
type: "equals",
key: "DATASET_KEY",
value: "50c9509d-22c7-4a22-a47d-8c48425ef4a7"
},
{
type: "isNotNull",
parameter: "RECORDED_BY_ID",
}
] } }.to_json
)
data << JSON.parse(response, symbolize_names: true)
Can we have
RECORDED_BY_ID
as a parameter on https://github.com/gbif/gbif-api/blob/dev/src/main/java/org/gbif/api/model/occurrence/search/OccurrenceSearchParameter.java please? My use-case is to gather all ORCID IDs from iNaturalist.