package
Version:
v0.0.0-...-33b12f9
Opens a new window with list of versions in this module.
Published: Sep 29, 2021
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Client is an OurGroceries client.
NewClient returns a Client.
AddItem adds an item to the given list.
GetList gets grocery items for a list.
GetLists gets the grocery lists from OurGroceries.
Login authenticates with OurGroceries and returns the user's teamID
HTTPClient in an interface for http.Client
type Item struct {
ID string `json:"id"`
Value string `json:"value"`
CategoryID string `json:"categoryid,omitempty"`
}
Item is a grocey list item
HandleGetList returns []Item from the response body of getList.
TODO: make HandleGetList a private function
type ListID struct {
Name string `json:"name,omitempty"`
ID string `json:"id,omitempty"`
}
ListID is a grocery list identifier
Source Files
¶
Click to show internal directories.
Click to hide internal directories.