Skip to main content

Bring! web api for Python

Project description

Bring Python API

This is an unofficial python API for Bring! the shopping list service, based on their webapi. Some endpoints might be missing, this is solely based on traffic capture while using the web app.

API doc

You'll find the API documentation on this page: https://psychokiller1888.github.io/bring-api/

Please note that sme endpoints might be missing

Insomnia repository

Import the repository in your Insomnia app: https://github.com/Psychokiller1888/bring-api/tree/master

Usage

  • Import the package in your project
  • Create a Bring instance by passing your login and password to use the API:
from BringPythonApi.Bring import Bring

try:
    bring = Bring(email='foo@bar.com', password='foobar')
except Exception as e:
    print(f'Error logging in: {e}')
else:
    # Add an item to your default list
    bring.purchase(item='Milk', detail='3 liters')

    # Remove 1 cat food from your default list
    bring.remove(item='Cat food', detail=1)

    # Empty your list called "My work list". If no name provided, defaults to you default list
    bring.emptyPurchaseList(listUuid=bring.user.getList(name='My work list'))

    # Change the default list language
    bring.changeUserListLanguage(languageCode='en-US')

    # Change the account password
    bring.changeUserPassword(newPassword='myNewPassword')

    # Get stats for Cat food
    bring.getItemStatistic(itemName='Cat food')

    # Get profile picture
    bring.getUserProfilePicture()

    # Add item to recent list
    bring.addToRecentItems(item='Milk', detail='2 liters')

    # Get my work shopping list
    bring.getShoppingList(listUuid=bring.user.getList(name='Work list'))

    # Move cucumber to another category
    bring.changeItemCategory(newCategory='Eigene Artikel')

    # Create a new "Bauhaus" list
    bring.createNewList(listName='Bauhaus')

    # Add power drill to Bauhaus shopping list
    bring.purchase(
        item='Power drill',
        detail='With bits',
        listUuid=bring.user.getList(name='Bauhaus')
    )

    # Create a new "Aldi" list
    bring.createNewList(listName='Aldi')

    # Add rice to Aldi's list
    bring.purchase(
        item='Rice (1kg)',
        detail=2,
        listUuid=bring.user.getList(name='Aldi')
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bring-python-api-1.0.2.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

bring_python_api-1.0.2-py3-none-any.whl (20.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page