McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 469

↗ View in doc context
page
469
source
finesse/v12.5/developer-guide/developer-guide.md
chunk_id
finesse::v12.5::developer-guide::developer-guide::453

Description Parameter A callback that is invoked one time in the life of the object, which is when the initializ successful and the data is loaded into the JavaScript object successfully. This JavaScri then passed to the handler as a parameter. This is equivalent to the success handler of a GET REST API request. onLoad A callback that is invoked when a new object is added to the collection. The newly ad then passed to the handler as a parameter. onCollectionAdd A callback that is invoked when an object is removed from the collection. The remove then passed to the handler as a parameter. onCollectionDelete A callback that is invoked with the response object as the parameter when any of the o such as, GET, PUT, POST and DELETE fails. For more information on parameters, see RestBase Common Parameters, on page 450 onError JavaScript Library Without Finesse JavaScript library In the absence of the Finesse JavaScript library, the following code would be needed to pull the User details after the login process is completed. • Make a GET call to the server to get the details of this agent. Example—GET $.ajax({ url: 'finesse/api/User/1001001' // where 1001001 is the username or id of the logged in agent. type: 'GET', Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 453 Cisco Finesse JavaScript APIs JavaScript Library