Python library for Cisco Spark
Project description
Why?
Spark API provides only one mechanism to notify bot about updates: Webhooks. “Webhooks require that the Cisco Spark Cloud be able to reach your backend over HTTP” (link) It’s not comfortable to develop and test bots on public server so Cspark-python emulates update mechanism using REST API.
Class-based routers and request handlers allow you to use Django-style project structure for complex projects.
Howto:
Install with PIP: pip install cspark-python
Then go to developer website, create new bot and achieve Access Token. Be careful and don’t copy your own Access Token it will cause funny situation.
If you stacked with icon uploading mechanism (as I always do), you can use random photo of a cat: https://pbs.twimg.com/profile_images/562466745340817408/_nIu8KHX.jpeg
Use examples to start your first bot. Don’t forget to change Access Token.
Currently only 0_simple_echo.py example works, others are concepts.
P.S. Cisco Spark team use term “SDK” for libraries which use their API… Ok. That’s Cisco Spark Python SDK.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.