04-01-2021 05:56 AM
My team has some Jenkins Groovy code which uses the sparkSend plugin to send messages to a WebEx space. This is working fine and I think it comes from the previous incarnation as Spark but the code is using a hard-coded UUID for the room ID such as 51a1ea20-18f5-11e8-b585-89efece6c416. When I use the WebEx API to get the list of rooms, the same room/space has a 72 character ID such as Y2lzY29zcGFyazovL3VzL1JPT00vNTFhMWVhMjAtMThmNS0xMWU4LWI1ODUtODllZmVjZTZjNDE2.
sparkSend doesn't seem to like using the current ID style (72 characters). If I want to use the plugin to write to another space, how do I get the UUID for it?
Solved! Go to Solution.
04-26-2021 09:12 AM - edited 04-26-2021 09:58 AM
I think I have an answer. After a quick look at the jenkinsci/cisco-spark-notifier-plugin repo to see what it did with the room ID, I tried to do a base64 decode of the 72-character string and it yielded the UUID!
$ echo Y2lzY29zcGFyazovL3VzL1JPT00vNTFhMWVhMjAtMThmNS0xMWU4LWI1ODUtODllZmVjZTZjNDE2 | base64 -d
ciscospark://us/ROOM/51a1ea20-18f5-11e8-b585-89efece6c416
$
04-26-2021 09:12 AM - edited 04-26-2021 09:58 AM
I think I have an answer. After a quick look at the jenkinsci/cisco-spark-notifier-plugin repo to see what it did with the room ID, I tried to do a base64 decode of the 72-character string and it yielded the UUID!
$ echo Y2lzY29zcGFyazovL3VzL1JPT00vNTFhMWVhMjAtMThmNS0xMWU4LWI1ODUtODllZmVjZTZjNDE2 | base64 -d
ciscospark://us/ROOM/51a1ea20-18f5-11e8-b585-89efece6c416
$
04-01-2021 02:29 PM
I guess this question suits very well to the Webex-Admin-Forum..
https://community.cisco.com/t5/webex-administration/bd-p/collab-webex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide