Skip to content

MikeCodesDotNET/BreweryDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

PCL for querying beers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published