Simple unofficial bring! API-wrapper written in Go
bring, err := bringo.NewWithLogin("[email protected]", "my password")
Returns the name, UUID and theme of all lists. However, this request does not include any items in the list.
To also get the items in a list, use GetList(listUUID string)
or GetLists()
.
var (
meta []*bring.BringListMeta
err error
)
meta, err = bring.GetListMetas()
for _, m := range meta {
// ...
}
Returns the UUID, the status, items to buy and previous items.
var (
list *bring.BringList
err error
)
list, err = bring.GetList("ffffffff-ffff-ffff-ffff-ffffffffffff")
// ...
combines GetLists()
and GetList(listUUID string)
var (
lists []*bring.BringListExpensive
err error
)
lists, err = bring.GetLists()
for _, l := range lists {
// ...
}
SaveItem(listUUID, itemName, specification string
var (
err error
listUUID = "ffffffff-ffff-ffff-ffff-ffffffffffff"
itemName = "Butter"
specification = ""
)
err = bring.SaveItem(listUUID, itemName, specification string)