What’s On Tap

  • Current Tap List
    See what beers are on tap right now in the Blue Stallion Brewing taproom (updated in real-time)

[insert_php]
$jsonstring = file_get_contents(‘https://service.digitalpour.com/BeerDashboard/api/v2/MenuItems/51b7eb18fb890c0b90f4bac3/1/Tap?apiKey=51eb21affb890c369c715dc0’);

$beerdata = ‘{“tap”:’.$jsonstring.’}’;

$json_a = json_decode($beerdata, true);

echo ‘

Tap

Beer Name


‘;

foreach($json_a[tap] as $beverage)
{

$item_name = $beverage[‘MenuItemDisplayDetail’][‘DisplayName’];
$producer_name = $beverage[‘MenuItemProductDetail’][‘FullProducerList’];
$beverage_name = $beverage[‘MenuItemProductDetail’][‘BeverageNameWithVintage’];
$beverage_style = $beverage[‘MenuItemProductDetail’][‘FullStyleName’];
$beverage_color = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘StyleColor’];
$year = $beverage[‘MenuItemProductDetail’][‘Year’];
$beverage_abv = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Abv’];
$beverage_ibu = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Ibu’];
$beverage_type = $beverage[‘MenuItemProductDetail’][‘BeverageType’];
$producer_location = “”;
$producer_url = “”;
$beverage_url = “”;
switch($beverage_type) {
case “Beer”:
$producer_location = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Brewery’][‘Location’];
$producer_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Brewery’][‘BreweryUrl’];
$beverage_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘BeerUrl’];
break;
case “Cider”:
$producer_location = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Cidery’][‘Location’];
$producer_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Cidery’][‘CideryUrl’];
break;
case “Mead”:
$producer_location = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Meadery’][‘Location’];
$producer_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Meadery’][‘MeaderyUrl’];
break;
case “Wine”:
$producer_location = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Winery’][‘Location’];
$producer_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘Winery’][‘WineryUrl’];
break;
case “Kombucha”:
$producer_location = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘KombuchaMaker’][‘Location’];
$producer_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘KombuchaMaker’][‘Url’];
break;
case “Soft Drink”:
$producer_location = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘SoftDrinkMaker’][‘Location’];
$producer_url = $beverage[‘MenuItemProductDetail’][‘Beverage’][‘SoftDrinkMaker’][‘Url’];
break;
}
$date_put_on = $beverage[‘DatePutOn’];
$bottle_size = $beverage[‘MenuItemProductDetail’][‘Prices’][0][‘Size’];
$bottle_price = $beverage[‘MenuItemProductDetail’][‘Prices’][0][‘Price’];
$beverage_ps = $beverage[‘MenuItemProductDetail’][‘Prices’][0][‘DisplayName’];
$in_bottles = $beverage[‘MenuItemProductDetail’][‘AvailableInBottles’];
$keg_size = $beverage[‘MenuItemProductDetail’][‘KegSize’];
$oz_remaining = $beverage[‘MenuItemProductDetail’][‘EstimatedOzLeft’];
$scale = 1.0;

echo ‘

‘.$item_name.’
‘;

if (isset($t[MenuItemProductDetail][Beer][BeerUrl])) {
echo ‘‘.$beverage_name.’‘;
}
else {
echo $beverage_name;
}

echo ‘ – ‘;

if (isset($producer_url)) {
echo ‘‘.$producer_name.’
‘;
}
else {
echo $producer_name.’
‘;
}

echo ‘‘.$producer_location.’  [‘.$beverage_style.’] – ABV: ‘.$beverage_abv.’% ‘;

if (isset($beverage_ibu)) {
echo ‘ IBU: ‘.$beverage_ibu;
}

echo ‘


‘;
}[/insert_php]
 
 

Data provided by:
DPLOGO_200px