PCL for querying beers
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2fb73ee Jan 26, 2017
Permalink
Failed to load latest commit information.
BreweryDB Added IBU field Jan 26, 2017
.gitignore Rewrite to cover more of the API and improve stability Dec 14, 2015
BreweryDB.workbook Tweak to workbook May 13, 2016
LICENSE Initial commit May 21, 2015
README.md Update README.md Jan 28, 2016

README.md

BreweryDB

alt tag

Build Status

A simple to use .NET based API for calling into BreweryDB.

BreweryDB is your database of breweries, beers, beer events and guilds!

Get an API Key

##Implemented Features

  • Adjuncts
  • Beers
  • Breweries
  • Categories
  • Events
  • Features
  • Fermentables
  • Fluidsize
  • Guilds
  • SocialSites
  • Yeasts

##How to use it ###Client

private readonly BreweryDbClient client = new BreweryDbClient(Keys.ApplicationKey);

###Beers ####Fetch beer by id

var response = await client.Beers.Get("cBLTUw");

####Fetch all beers

//Returns first page (50 beers per page)
var response = await client.Beers.GetAll();

//Returns third page (50 beers per page)
var response = await client.Beers.GetAll(3);

####Fetch beers with parameter

var parameters = new NameValueCollection {{BeerRequestParameters.Name, "duvel single"}};
var response = await client.Beers.Get(parameters);

####Search for beer

var response = await client.Beer.Search("duvel");

###Breweries ####Fetch brewery by id

var response = await client.Breweries.Get("YXDiJk");

####Fetch all brewery

//Returns first page (50 beers per page)
var response = await client.Breweries.GetAll();

//Returns third page (50 beers per page)
var response = await client.Breweries.GetAll(4);

####Fetch brewery with parameter

var parameters = new Helpers.NameValueCollection {{BreweryRequestParameters.Name, "Ad Lib Brewing Company" } };
var response = await client.Breweries.Get(parameters);

####Search for brewery

var response = await client.Breweries.Search("duvel");