Notifications and related UX around expired or soon-to-expire badges will be available as a Badgr Pro feature soon. In the meantime, intrepid API clients may implement their own custom behavior around notifications by processing awarded assertions to determine which are expired.
- Download the files to a directory on your local system.
- Activate a virtualenvironment for dependencies
- Install the python dependencies in requirements.txt with
pip install -r requirements.txt
- Configure a settings_local.py file to expose
BADGR_HOST
(likehttps://api.badgr.io
) andBADGR_API_KEY
strings. - You may obtain an API key with the quickstart instructions at badgr.org
- Enter a python interpreter:
python
- Import the function:
from assertions_expiration_report import *
- Run the function for a particular issuer you control:
export_expiring_assertions('abc123abc123abc123a')
- Optionally, pass in a export filename and whether to skip past expirations like
export_expiring_assertions('abc123abc123abc123a', filename='myexport.csv', include_past=False)