Beispiel #1
0
    function getBeerType(style) {
        console.log('in get beer type with ' + style);
        return client.styles().then(function (res) {
            var beerStyle = _.find(res.data, {'name' : style});
            console.log("returning styles " + beerStyle.name);
            return beerStyle;
        }, function (err) {
            console.log("whoops" + err);
        });
}
Beispiel #2
0
function getBeerTypes() {
    console.log('in get beer types');
    return client.styles().then(function (res) {

        console.log("returning styles " + res.data[0].name);
        return res;
    }, function (err) {
        console.log("whoops" + err);
    });
}