What Is It?
An example script to show you how to create Cards using the webexteamssdk library for Python.
What does a card look like?
REQUIREMENTS
- Python 3.x or higher (tested with 3.7.x and 3.9.x)
- Python 'webexteamssdk' library
TESTED on Mac: Python 3.9.1, webexteamssdk 1.6
TESTED on Win 10: Python 3.7.2, webexteamssdk 1.6
Start
-
Install Python (instructions)
-
Install webexteamssdk library (instructions)
short version: "python3 -m pip install webexteamssdk"
-
Get a Webex Message token:
Use a Bot token:
Go to developer.webex.com and login
Create a bot
copy the bot token
Use your developer token:
Only valid for 12 hours!
Has full access to all of your data.
On developer.webex.com, login and under “Getting Started” scroll to “your personal access token”
-
Edit webexcards-sdk-example.py
bot_token = "YOUR_BOT_TOKEN_HERE”
webex_space_id = "DESTINATION_EMAIL_ADDRESS_HERE"
THEN save the code and run the script.
Support?
To get support, please join this Webex Space that I actively monitor: https://eurl.io/#w-0h7ytwQ
More like this?
Will be announced in the Webex Developer LinkedIn group at: http://cs.co/webexdevlink
And for all your Webex Developer resources, go to http://cs.co/webexdevinfo