Skip to main content

Python library for Cisco Spark

Project description

|Build| |Downloads| |Version|

Why?

  1. 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.

  2. Class-based routers and request handlers allow you to use Django-style project structure for complex projects.

Howto:

  1. Install with PIP: pip install cspark-python

  2. 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

  3. 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.

Source Distribution

cspark-python-0.0.10.tar.gz (4.3 kB view hashes)

Uploaded Source

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