A script I use to randomly select a paper from my "To read" collection.
The script expects the following environment variables to be set:
ZOTERO_API_KEY
ZOTERO_USER_ID
The user id is a numerical id, not your Zotero login name.
You can find your user id and create an api key at https://www.zotero.org/settings/keys.
I set these in my ~/.localrc file:
export ZOTERO_API_KEY=...
export ZOTERO_USER_ID=...