Shopi Automation
Shopi supports automation via the x-callback-url mechanism. You can use the commands documented below to automate Shopi from tools that support x-callback-url
, such as Launch Center and Drafts.
When list names are used in a command, if there is more than one list with the given name, the first one is chosen.
Show All Lists
Ensure the main display is showing the view showing all shopping lists.
shopi://x-callback-url/show-lists
Show A List
Show the shopping list named list-name.
shopi://x-callback-url/show-list?name=<list-name>
Create A List
Create add a new list named list-name.
shopi://x-callback-url/create-list?name=<list-name>
Add List Item
Add an item to list-name (or the currently displayed list if not specified), with name item-name, and optional amount and crossed settings (crossed may be “yes” or “no”).
shopi://x-callback-url/add-item?list=<list-name>
&name=<item-name>&amount=<amount>&crossed=<yes-or-no>
Clear List Items
Clear items from a list named list-name, either all items, or only crossed items when crossed-only is “yes”.
shopi://x-callback-url/clear-list?name=<list-name>
&crossed-only=<yes-or-no>