This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

Cisco Webex Teams Automation

published

This repository contains some simple scripts to automate tasks in Cisco Webex Teams.

To get started you'll need to install the required modules and update the token as shown below.

Replace {} with your personal token. Do NOT delete the Bearer keyword.

if __name__ == '__main__':
    token = "Bearer {}"	# Personal access token
    main()

For information regarding your access token, click here and sign into your Cisco Webex Teams account.

webex-create-and-add.py

This script creates a new Cisco Webex Teams room, adds a user, and sends a message to the new room.

Requirements

  • Python 2.7
  • Requests
  • Cisco Webex Teams account

The details shown below are the default values. Editing them is completely optional.

room_name = "My New Room"               # New room name
user_name = "gifbot@webex.bot"          # User to add to new room
message = "Hello World!"                # Message to send to new room

To run this script, run the command: python webex-create-and-add.py.

excel-to-new-room.py

This script creates a new room, and adds users from an Excel spreadsheet containing email adresses.

Requirements

This script uses email_addresses.xlsx (included in this repo) as the file containing email addresses. You MUST have this file in the same directory as excel-to-new-room.py.

filename = 'email_addresses.xlsx'       # File containing email_addresses
room_name = "My New Room"               # New room name
message = "Welcome!"                    # Message to send to new room

To run this script, run the command: python excel-to-new-room.py.

Questions/Discussion

If you find an issue, please raise an issue within the issues section.

Also, if you would like to extend one of these scripts for a more specific use case, please feel free to contact me with any questions/concerns you may have.


Trent Bosak
Cisco Technical Sales Engineer Intern

View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    Webex
  • Programming Languages

    Python
  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.