<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Hi Ryan,</div>
<div class=""><br class="">
</div>
<div class="">From reading the Finesse API documentation there is no way to filter the response from the Finesse server, I can see one or two resources do have query string filters, but the User resource is not one of them. So unless someone knows of an undocumented
capability to filter the User list returned from the Finesse API you will have to write some code to do the parsing/filtering of the response from Finesse. I believe Brian was referring to your server/application, that you will need to pull all users, parse
the data and filter the users within your application.</div>
<div class=""><br class="">
</div>
<div class="">The response from Finesse is simple XML, it’s usually quite easy to load the XML into a DOM document/model and use an XPath expression to filter the data from there. If you don’t mind providing some info on the environment you are developing with
(i.e. Javascript/node, PHP, Perl, C# etc.) happy to help with the DOM Object and XPath expression statements to filter/extract the data you are looking for.</div>
<div class=""><br class="">
</div>
<div class="">Kind Regards.</div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class="">
Stephen Welsh</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; " class="">
CTO</div>
<br class="Apple-interchange-newline" style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<span><img height="16" width="100" apple-inline="yes" id="7D3F8232-FD8A-4E02-B0E2-DEC32D252481" apple-width="yes" apple-height="yes" src="cid:CBBF0493-235C-43D2-A874-9FB3D95AF598@b2.unifiedfx.com" class=""></span>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 11 Feb 2016, at 05:47, Ryan Burtch <<a href="mailto:rburtch3@gmail.com" class="">rburtch3@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">
<div class="">How would I filter Server-Side? Forgive my ignorance.<br class="">
<br class="">
<br class="">
<div class="">Sincerely,</div>
<div class=""><br class="">
</div>
<div class="">Ryan Burtch</div>
</div>
<div class=""><br class="">
On Feb 10, 2016, at 5:51 PM, Brian Meade <<a href="mailto:bmeade90@vt.edu" class="">bmeade90@vt.edu</a>> wrote:<br class="">
<br class="">
</div>
<blockquote type="cite" class="">
<div class="">
<div dir="ltr" class="">I'd say just pull in the whole list and then filter through server-side before presenting the data into your other app.</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Feb 10, 2016 at 5:51 PM, Ryan Burtch <span dir="ltr" class="">
<<a href="mailto:rburtch3@gmail.com" target="_blank" class="">rburtch3@gmail.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">Guys,
<div class=""><br class="">
</div>
<div class="">I have all finesse agents. I need to pull all agents who are logged on into another app i'm working on, but I can't seem to filter the API request. There aren't any query parameters in API. Help.</div>
</div>
<div class="gmail_extra"><br clear="all" class="">
<div class="">
<div class="">
<div dir="ltr" class=""><br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Sincerely,</div>
<div class=""><br class="">
</div>
<div class="">Ryan Burtch</div>
</div>
</div>
</div>
<div class="">
<div class="h5"><br class="">
<div class="gmail_quote">On Wed, Feb 10, 2016 at 3:55 PM, Brian Meade <span dir="ltr" class="">
<<a href="mailto:bmeade90@vt.edu" target="_blank" class="">bmeade90@vt.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">If you're split and only want Finesse info, you can use "<span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.4px;" class="">http://<FQDN>/finesse/api/User/<id>" and replace <id> with the agent extension
from each user you get in /api/Users and then you can see state information.</span></div>
<div class="">
<div class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, Feb 10, 2016 at 4:51 PM, Brian Meade <span dir="ltr" class="">
<<a href="mailto:bmeade90@vt.edu" target="_blank" class="">bmeade90@vt.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">I'm guessing your split so that some users are on CAD and you only want info on Finesse users?
<div class=""><br class="">
</div>
<div class="">If you're only on Finesse, I'd just look at the Live Report for Agent State in CUIC.</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">
<div class="">
<div class="">On Wed, Feb 10, 2016 at 4:45 PM, Ryan Burtch <span dir="ltr" class="">
<<a href="mailto:rburtch3@gmail.com" target="_blank" class="">rburtch3@gmail.com</a>></span> wrote:<br class="">
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
<div class="">
<div dir="ltr" class="">All,
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;min-height:85px" class="">
<div style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline;" class="">
IS there a way to get all the names and agent states of all agents currently logged into Finesse?</div>
<div style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; vertical-align: baseline;" class="">
<br class="">
</div>
<div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;" class="">
I have pulled been able to pull ALL the agents that have used finesse via GET<a href="http://10.36.41.25/finesse/api/Users/" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;color:rgb(10,99,167);text-decoration:none" target="_blank" class="">http://<server>/finesse/api/Users/</a><span style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-size:10pt;font-family:inherit;vertical-align:baseline;line-height:1.5em" class="">,
but I would like to pull only certain user states like Not Ready, Ready, Talking, etc</span></div>
<div style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;" class="">
<span style="margin:0px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-size:10pt;font-family:inherit;vertical-align:baseline;line-height:1.5em" class="">Do you know how I could accomplish that?</span></div>
</div>
<div style="margin:35px 0px 12px;padding:0px;border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;min-height:0px" class="">
</div>
<ul style="margin:6px 0px 0px;padding:6px 0px;border-width:1px 0px 0px;border-top-style:solid;border-top-color:rgb(235,235,235);font-weight:inherit;font-style:inherit;font-size:10.8px;font-family:inherit;vertical-align:baseline;min-height:0px;list-style:none;text-align:right" class="">
</ul>
<div class="">
<div class="">
<div dir="ltr" class=""><br class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Sincerely,</div>
<div class=""><br class="">
</div>
<div class="">Ryan Burtch</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
cisco-voip mailing list<br class="">
<a href="mailto:cisco-voip@puck.nether.net" target="_blank" class="">cisco-voip@puck.nether.net</a><br class="">
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank" class="">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
_______________________________________________<br class="">
cisco-voip mailing list<br class="">
<a href="mailto:cisco-voip@puck.nether.net" class="">cisco-voip@puck.nether.net</a><br class="">
https://puck.nether.net/mailman/listinfo/cisco-voip<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>