Party planner (suggestions based on cabinet contents, units or drinks per person, preferred style of drink)
getIngredients
Lists ingredients in database in alphabetical order. (unique ID and name returned)
Parameters:
searchfor:string - those ingredients with name starting with string contents will be returned. Case insensitive.
format: "xml" or "json". specifies format of returned data. Default is XML
Examples of use :
http://www.davykelly.com/splendrink/getIngredients.php - returns all ingredients as XML
http://www.davykelly.com/splendrink/getIngredients.php?searchfor=G - returns ingredients starting with G as XML
http://www.davykelly.com/splendrink/getIngredients.php?searchfor=G&format=json - as above but returned as JSON
Sample of returned dataset (xml)
click here
Sample of returned dataset (json)
click here
getBrands
Lists brands of an ingredient in alphabetical order (unique ID, name and strength returned).Strength is % alcohol by volume.
Parameters:
ingred: unique ID of ingredient (non numeric values ignored)
format:"xml" or "json". specifies format of returned data. Default is XML. Case insensitive.
Examples of use :
http://www.davykelly.com/splendrink/getBrands.php?ingred=1 - returns all brands of selected ingredient. Data returned as XML
http://www.davykelly.com/splendrink/getBrands.php?ingred=2&format=xml - returns all brands of selected ingredient as XML
http://www.davykelly.com/splendrink/getBrands.php?ingred=2&format=json - as above but returned as JSON
Sample of returned dataset (xml)
click here
Sample of returned dataset (json)
click here
getDrinksFromName
Lists Drinks in database in alphabetical order (unique ID and name returned).
Parameters:
searchfor:string - those drinks with name containing string contents will be returned.Case insensitive.
format:"xml" or "json". specifies format of returned data. Default is XML. Case insensitive.
Examples of use :
http://www.davykelly.com/splendrink/getDrinksFromName.php - returns all drinks as XML
http://www.davykelly.com/splendrink/getDrinksFromName.php?searchfor=cool - returns drinks with name containing "cool" (e.g. Gin Cooler) as XML
http://www.davykelly.com/splendrink/getDrinksFromName.php?searchfor=cool&format=json - as above but returned as JSON
Sample of returned dataset (xml)
click here
Sample of returned dataset (json)
click here
getDrinksFromIngredients
Lists Drinks in database in alphabetical order containing selected ingredients (max 3) (unique ID and name returned).
Parameters:
ingred1:integer - id of ingredient #1 (non numeric values ignored)
ingred2:integer - id of ingredient #2 (non numeric values ignored, ingred1 must be specified)
ingred3:integer - id of ingredient #3 (non numeric values ignored, ingred1 and ingred2 must be specified)
format: "xml" or "json". specifies format of returned data. Default is XML
Examples of use :
http://www.davykelly.com/splendrink/getDrinksFromIngredients.php?ingred1=1 - returns all drinks containing ingredient with id=1 as XML
http://www.davykelly.com/splendrink/getDrinksFromIngredients.php?ingred1=1&ingred2=12 - returns drinks containing ingredients with id=1 AND id=12 as XML
http://www.davykelly.com/splendrink/getDrinksFromIngredients.php?searchfor=ingred1=1&ingred=12&format=json - as above but returned as JSON
Dataset returned is as for getDrinksFromName
getDrinkDetails
List all data in database about a selected drink
Parameters:
id:integer - unique ID of a drink in the database (non numeric values ignored)
format: "xml" or "json". specifies format of returned data. Default is XML
Examples of use :
http://www.davykelly.com/splendrink/getDrinkDetails.php?id=15 - returns all drink data (ingredients, glass type etc.) for that with ID=15 as XML
http://www.davykelly.com/splendrink/getDrinkDetails.php?id=15&format=json - as above but returns data as JSON.
Sample of returned dataset (xml)
click here
Sample of returned dataset (json)
click here
Back