A simple Python 3 demo using AIOHTTP for asynchronous polling of Cisco Spark for messages.
The thread will get the time, get a list of rooms, then asynchronously get all new messages in every room and print them on the screen.
You could use this for a simple message callback/bot function.
pip install -r requirements.txt
Set a file config.yml
with the settings
api_key: <api key>
Optionally, you can set the list of rooms by ID
rooms:
- <rooom 1 id>
- <room 2 id>
Using Python 3 (3.5+)
python bot.py