Bring! shopping list
v0.1.1Manage Bring! shopping lists: add items with quantities, recipe ingredients and weekly staples.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_lists
List the available Bring! shopping lists.
get_list
Items to buy and recently bought items of a list.
| Parameter | Type | Description |
|---|---|---|
list | Bring list name (default: the main list) |
add_items
Add items. If an item is already on the list, the specifications are merged.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
list | Bring list name (default: the main list) |
update_item
Replace the specification (quantity/detail) of an item on the list.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
spec * | string | |
list | Bring list name (default: the main list) |
complete_items
Mark items as bought (they move to "recently bought").
| Parameter | Type | Description |
|---|---|---|
names * | array | |
list | Bring list name (default: the main list) |
remove_items
Remove items from the list (to buy or recently bought).
| Parameter | Type | Description |
|---|---|---|
names * | array | |
list | Bring list name (default: the main list) |
fetch_recipe
Extract the ingredients of a recipe page (with Bring's recipe parser). `pantry` = ingredient usually already at home (salt, pepper...). Adds nothing to the list: adjust the quantities to the number of servings, then call add_items.
| Parameter | Type | Description |
|---|---|---|
url * | string | Recipe page URL |
list | Bring list name (default: the main list) |
get_staples_list
Staple items that add_staples (and the weekly job) add when they're missing from the list.
set_staples_list
Replace the whole staples list.
| Parameter | Type | Description |
|---|---|---|
items * | array |
add_staples
Add to the shopping list the staple items that aren't on it yet.
| Parameter | Type | Description |
|---|---|---|
list | Bring list name (default: the main list) |