Skip to content

Instantly share code, notes, and snippets.

@Tadas44
Last active June 15, 2017 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tadas44/029ceb191ab2f4e4644042e76b32fa9b to your computer and use it in GitHub Desktop.
Save Tadas44/029ceb191ab2f4e4644042e76b32fa9b to your computer and use it in GitHub Desktop.
//Locations API call
{
locations: [
{
"id": 12,
"name": "Camorino"
},
{
"id": 11,
"name": "Cazis"
}
]
}
//Pathogens API call (params:[token="asdasdasvx",locationId=1,lang:en]) we use short language codes (eg. en not en_US) https://web.archive.org/web/20121102100111/http://colincooper.net:80/blog/2011/02/17/android-supported-language-and-locales/
{
"pathogens": [{
"id": 1,
"name": "African Mole Cricket",
"description": "Gryllotalpa africana",
"imageUrl": "http://image.png",
"iconLabel": "Insect",
"iconImageUrl": "http://insect.png",
"riskName": "Lotta necessaria",
"riskLevel": 4
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment