/webex

a webex client for building webex bots

Primary LanguageCrystalMIT LicenseMIT

Cisco Webex Client for Crystal Lang

You can use this as the basis for building a Webex Bot

Installation

Add the dependency to your shard.yml:

  dependencies:
    webex:
      github: place-labs/webex

Obtaining a bot access token

You'll need a developers account at cisco and then do the following:

  1. ...
  2. ...

Usage

Configure the client:

require "webex"

Cisco::Webex::Client.new(...)

Webex sends message metadata as they come in. You can subscribe to them by doing the following:

If you are interested in the message you can request the message contents by doing:

Then you can respond to a message:

Developer references