01-19-2022 01:11 AM - edited 01-19-2022 04:24 AM
Hi,
I am trying to subscribe to team events in Cisco Ajax Xmpp Library for the Supervisor, but am unable to do so. Is there any sample or documentation regarding CAXL for getting a subscription of the team via Xmpp connection?
Thanks.
Solved! Go to Solution.
01-25-2022 09:23 PM
Team subscription in CAXL is done by sending an Iq in the following format:
var builder = new jabberwerx.NodeBuilder("{http://jabber.org/protocol/pubsub}pubsub"); builder.element("subscribe").attribute("node", "/finesse/api/Team/" + teamId + "/Users"). attribute("jid", jid); xmppClient.sendIq("set", "pubsub." + domain, builder.data, callback, 5000);
01-19-2022 08:58 AM
Hi,
I am assuming that you are not building a Finesse gadget and are using the XMPP library to get the events.
There isn't a sample on how to subscribe to a supervisor's team using the CAXL library. Have you done it manually to make sure that you have the proper steps? If not, take a look at this tutorial: https://developer.cisco.com/docs/finesse/#!basic-supervisor-rest-apis
Thanx,
Denise
01-19-2022 09:04 AM
01-19-2022 09:21 AM
Sorry, I haven't had the need to implement subscribing to a team. Maybe there are folks in this community that have done it and can help.
Thanx,
Denise
01-25-2022 09:23 PM
Team subscription in CAXL is done by sending an Iq in the following format:
var builder = new jabberwerx.NodeBuilder("{http://jabber.org/protocol/pubsub}pubsub"); builder.element("subscribe").attribute("node", "/finesse/api/Team/" + teamId + "/Users"). attribute("jid", jid); xmppClient.sendIq("set", "pubsub." + domain, builder.data, callback, 5000);
01-26-2022 08:52 AM
Thank you for posting your solution for others in the community!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: