This script allows you to add users to a Cisco Spark room using a spreadsheet.
- Cisco Spark account (free)
- json (JSON, standard in Python)
- re (RegEx, standard in Python)
- requests - Go to the Requests Installation page and follow the instructions
- On a mac you could run
sudo pip install requests
- On a mac you could run
- openpyxl - go to the OpenPyXL documentation page and search for "install"
- On a mac you could run
sudo pip install openpyxl
- On a mac you could run
- python - tested with Python 2.7.10 on OSX 10.11.3
- excel - files, tested with XLSX generated by Excel 2016 OSX
- pyxlstospark.py - the code
- attendees.xlsx - sample spreadsheet
- Set your personal access token
myToken=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- enter your Personal Access token here. You can find it in https://developer.ciscospark.com, login, click your name (top right)
- Set your room ID
myRoom=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- get your room ID from the Spark for Developers page, under Rooms / List rooms
- Enter the path to your spreadsheet
- myworkbook = /Users/myname/Documents/SparkImport/attendees.xlsx
- Enter the start column that contains the email addresses
- example:
mysheetStartCol = 3
- Enter the column number where the email addresses start: example: column A=1, B=2, C=3, D=4 ...
- example:
- Enter the start row that contains the email addresses
- example:
mysheetStartRow = 4
- Enter the row number where the email addresses start
- example:
- Enable test mode or production
TestOnly = yes
- If "yes": only PRINT results, if "no": add found email addresses to the Spark room.
- Go to the folder containing your test.py file
- Set the "TestOnly" parameter to "yes"
- Run "python test.py"
- The script will show the number of succesfully added users and a list of failed users
- The script will only read the first sheet of an Excel workbook
- I have only tested this with Excel 2016 (OSX) spreadsheets
- After the script runs it will show the users that could not be added and the number of succesfully added users.
- This script uses your personal access token, so it runs "as you". The personal access token may change, and could therefore break this code.
- Users will be added as normal users, not room moderators. You can assign room moderators manually
- Spark Developer documentation: here
- "Failed users" could have several reasons (for example: already member of that room)