12-30-2013 05:31 AM
I am trying to subscribe an agent to Team and Queue notification.
I have used(edited) code from non gadget sample.
The request captured from fiddler looks something similar to:
For Team Subscription:
POST /finesse/api/Team/8945/Users HTTP/1.1
Where 8945 is the agent ID
Response :
HTTP/1.1 404 Not Found
To test it I also tried User notification:
POST /finesse/api/User/8945 HTTP/1.1
Response
HTTP/1.1 405 Method Not Allowed
Allow: GET,OPTIONS,HEAD,PUT
The added code to non gadget sample for team subscription:
this.subscribeToTeam = function (agentId, resource, handler, errHandler) {
var method = "POST",
url = _webappPath + "/api/Team/" + agentId + "/Users",
params = { "resource": resource };
_sendReq(url, method, null, params, handler, errHandler);
};
Can someone please help me to subscribe to the new nodes for notification in Finesse?
Solved! Go to Solution.