Skip to content

Instantly share code, notes, and snippets.

@danielgtaylor
Created October 25, 2012 20:03
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 danielgtaylor/3955072 to your computer and use it in GitHub Desktop.
Save danielgtaylor/3955072 to your computer and use it in GitHub Desktop.
Example httpie call for Malt.io API
$ http https://maltioweb.appspot.com/_ah/api/maltio/v1/recipes limit==1 order==LIKES
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Date: Tue, 30 Oct 2012 18:34:17 GMT
ETag: "8xJp6-t04hAv0QlZ8diuygX5EF8/R4Slr4GR8josHmd2u6O0ZhjkW6g"
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Pragma: no-cache
Server: GSE
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
content-type: application/json; charset=UTF-8
{
"etag": "\"8xJp6-t04hAv0QlZ8diuygX5EF8/R4Slr4GR8josHmd2u6O0ZhjkW6g\"",
"items": [
{
"abv": 8.7,
"batch_liters": 13.248935000000001,
"boil_liters": 11.35623,
"bottling_pressure": 3.0,
"bottling_temp": 21.11111111111111,
"color": 4,
"description": "A Belgian abbey-style strong tripel ale spiced with
coriander and grains of paradise.",
"fermentables": [
{
"color": 2.0,
"description": "Extra pale liquid malt extract",
"late": true,
"weight_kg": 2.72154,
"yield_ratio": 0.8006231877785952
},
{
"color": 1.0,
"description": "Table sugar",
"late": false,
"weight_kg": 0.5669875,
"yield_ratio": 0.9953693685896049
},
{
"color": 2.0,
"description": "Extra light dry extract (yeast starter)",
"late": false,
"weight_kg": 0.1133975,
"yield_ratio": 0.9088155104513784
}
],
"ibu": 22.7,
"likes": 2,
"name": "Monk's Tripel",
"owner": "danielgtaylor",
"parent_owner": "",
"parent_slug": "",
"parent_url": "",
"slug": "monk-s-tripel",
"spices": [
{
"aa_ratio": 0.04,
"description": "Styrian Celeja",
"form": "pellet",
"time": 3600,
"use": "boil",
"weight_kg": 0.011339750000000001
},
{
"aa_ratio": 0.04,
"description": "Styrian Celeja",
"form": "pellet",
"time": 900,
"use": "boil",
"weight_kg": 0.011339750000000001
},
{
"aa_ratio": 0.0,
"description": "Medium toasted 1cm oak cubes",
"form": "cube",
"time": 300,
"use": "boil",
"weight_kg": 0.0056698750000000004
},
{
"aa_ratio": 0.04,
"description": "Styrian Celeja",
"form": "pellet",
"time": 60,
"use": "boil",
"weight_kg": 0.03401925
},
{
"aa_ratio": 0.0,
"description": "Grains of paradise",
"form": "ground",
"time": 60,
"use": "boil",
"weight_kg": 0.0028349375000000002
},
{
"aa_ratio": 0.0,
"description": "Coriander",
"form": "ground",
"time": 60,
"use": "boil",
"weight_kg": 0.0141746875
}
],
"url": "http://www.malt.io/users/danielgtaylor/recipes/monk-s-tripel",
"yeast": [
{
"attenuation_ratio": 0.8,
"description": "Wyeast 3864 - Canadian / Belgian?",
"form": "liquid",
"type": "ale"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment