nickdaelemans / bring-sdk
SDK package for connection with Bring Shopping list
dev-main
2021-12-13 20:49 UTC
Requires
- ext-json: *
- guzzlehttp/guzzle: 7.4.x-dev
This package is auto-updated.
Last update: 2025-08-14 04:56:10 UTC
README
Why
This is a personal project where I wanted to use a smart button to allow me to add stuff to my Bring shopping list, by pressing the button.
At the time of creation, there were no integrations that I could use, so I decided to write my own. I based myself on the https://github.com/foxriver76/node-bring-api repository.
How to install
Simply run composer require nickdaelemans/bring-sdk
How to use
Example usage
// Initiate the BringApi class with your e-mailaddress and password.
$bring = new BringApi('info@example.com', 'PASSWORD');
$bring->login();
// Get all lists for the logged in user.
$lists = $bring->getLists();
// Get all items from a list.
$list_items = $bring->getItemsFromList('536bb7f3-e3f7-4b7f-af05-253cc47b1dd5');
// Add item to the list using the list's uuid.
$bring->addItem('536bb7f3-e3f7-4b7f-af05-253cc47b1dd5', 'Item name');