Skip to content

Instantly share code, notes, and snippets.

@mdoering
Created August 10, 2015 14:20
Show Gist options
  • Save mdoering/e9fe0f58d7d9a8655ca9 to your computer and use it in GitHub Desktop.
Save mdoering/e9fe0f58d7d9a8655ca9 to your computer and use it in GitHub Desktop.
curl -i -u occdownload.gbif.org:occdownload1 -H "Content-Type: application/json" -X PUT -d @download.json http://apps2.gbif-uat.org:8084/occurrence/download/0000478-150805223722583
{
"created": "2015-08-07T17:40:38.169+0000",
"doi": "doi:10.5072/dl.anf2ai",
"downloadLink": "http://api.gbif-uat.org/v1/occurrence/download/request/0000478-150805223722583.zip",
"key": "0000478-150805223722583",
"modified": "2015-08-10T13:59:34.582+0000",
"numberDatasets": 205,
"request": {
"creator": "fmendez",
"format": "SIMPLE_CSV",
"predicate": {
"predicates": [
{
"key": "TAXON_KEY",
"type": "equals",
"value": "2490719"
},
{
"geometry": "POLYGON((21.09375 72.607120,-19.6875 58.813741,-15.468749 34.307143,43.59375 43.068887,46.40625 68.138851,21.09375 72.607120))",
"type": "within"
},
{
"key": "HAS_GEOSPATIAL_ISSUE",
"type": "equals",
"value": "false"
},
{
"key": "HAS_COORDINATE",
"type": "equals",
"value": "true"
},
{
"predicates": [
{
"key": "YEAR",
"type": "greaterThanOrEquals",
"value": "2001"
},
{
"key": "YEAR",
"type": "lessThanOrEquals",
"value": "2015"
}
],
"type": "and"
},
{
"predicates": [
{
"key": "MONTH",
"type": "greaterThanOrEquals",
"value": "1"
},
{
"key": "MONTH",
"type": "lessThanOrEquals",
"value": "5"
}
],
"type": "and"
}
],
"type": "and"
},
"sendNotification": true
},
"size": 12323,
"status": "RUNNING",
"totalRecords": 518688
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment