<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: xsi-actions get requests params returns limited results in Cloud Calling</title>
    <link>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643364#M531</link>
    <description>&lt;P&gt;Looks like that documentation has the relevant bits missing. I have a loop that goes through the directories. If you look at the directories/enterprisecommon one in that document it shows start and result. From memory the enterprise one is the same as the enterprisecommon which didnt exist when I did my integration. But for enterprise the result size is up to a maximum of 50 at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From a quick browse through i think the same should work for some of the call log directories too but I haven't tried them&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 12:02:16 GMT</pubDate>
    <dc:creator>mpcaddy</dc:creator>
    <dc:date>2022-07-04T12:02:16Z</dc:date>
    <item>
      <title>xsi-actions get requests params returns limited results</title>
      <link>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643271#M530</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am messing around with the Broadworks XSI API to extract data from the api to our own datawarehouse. I have the API up and running and I am getting data back.&amp;nbsp;The only problem I have right now is that I am getting a limited set of results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say for example&amp;nbsp;&lt;STRONG&gt;directories/CallLogs/Placed&lt;/STRONG&gt; always returns 20 records.&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;directories/Enterprise&lt;/STRONG&gt; says 1174 available records but returns only 50 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read the whole &lt;A href="https://pubhub.devnetcloud.com/media/broadsoft-docs/docs/pdf/BW-XSIInterfaceSpec.pdf" target="_self"&gt;broadworks xsi guide&lt;/A&gt; but I cant find any parameters to instruct the API to get all records, with something like skip&amp;amp;take so I can loop through the data with a Python script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there additional documentation out there (that for the life of me I can't find) that elaborates on the global usable request parameters?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried&amp;nbsp;&lt;STRONG&gt;start=1, limit=1000&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;start=1,&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;end=1000&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;skip=0, take=1000&lt;BR /&gt;&lt;/STRONG&gt;I read that if the api doenst recognize the params it just ignores them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the request I have setup right now:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;URL:&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://our_host/com.broadsoft.xsi-actions/v2.0/user/a_user_id/directories/calllogs/placed?format=json" target="_blank" rel="noopener"&gt;https://&lt;STRONG&gt;our_host&lt;/STRONG&gt;/com.broadsoft.xsi-actions/v2.0/user/&lt;STRONG&gt;a_user_id&lt;/STRONG&gt;/directories/calllogs/placed?format=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Headers&lt;/STRONG&gt;:&lt;BR /&gt;Authorization : Basic &lt;STRONG&gt;key&lt;/STRONG&gt;&lt;BR /&gt;Content-type :&amp;nbsp;application/json; charset=utf-8&lt;BR /&gt;Accept :&amp;nbsp;application/json&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hoping that someone can point me in the right direction &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Glenn&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:08:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643271#M530</guid>
      <dc:creator>Glenn van Bavel</dc:creator>
      <dc:date>2022-07-04T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: xsi-actions get requests params returns limited results</title>
      <link>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643364#M531</link>
      <description>&lt;P&gt;Looks like that documentation has the relevant bits missing. I have a loop that goes through the directories. If you look at the directories/enterprisecommon one in that document it shows start and result. From memory the enterprise one is the same as the enterprisecommon which didnt exist when I did my integration. But for enterprise the result size is up to a maximum of 50 at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From a quick browse through i think the same should work for some of the call log directories too but I haven't tried them&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 12:02:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643364#M531</guid>
      <dc:creator>mpcaddy</dc:creator>
      <dc:date>2022-07-04T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: xsi-actions get requests params returns limited results</title>
      <link>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643392#M532</link>
      <description>&lt;P&gt;He mpcaddy, thanks for the insights! That means we can use the&amp;nbsp;&lt;STRONG&gt;start&lt;/STRONG&gt; param when we know the hard limit is for example 50 records. Then the loop would be something like:&lt;/P&gt;&lt;P&gt;1st run: start=1&lt;/P&gt;&lt;P&gt;2nd run: start 51&lt;/P&gt;&lt;P&gt;3rd run: start 101&lt;/P&gt;&lt;P&gt;repeat indefinitely untill no more records are returned&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the&amp;nbsp;&lt;STRONG&gt;CallLogs&lt;/STRONG&gt; directories doesnt respond to the&amp;nbsp;&lt;STRONG&gt;start&lt;/STRONG&gt; param which is weird because the documentation describes it will return all call logs:&amp;nbsp;&lt;EM&gt;This command is used to retrieve (GET method) or delete (DELETE method) &lt;U&gt;&lt;STRONG&gt;all&lt;/STRONG&gt;&lt;/U&gt; call logs.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This api is giving me headaches &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 12:36:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643392#M532</guid>
      <dc:creator>Glenn van Bavel</dc:creator>
      <dc:date>2022-07-04T12:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: xsi-actions get requests params returns limited results</title>
      <link>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643479#M534</link>
      <description>&lt;P&gt;Yep thats pretty much the process I have, loop through incrementing the start by 50 each time until I have all the entires.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a vague recollection of reading somewhere that only a small history of calls are in the call logs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes the api gave me headaches and nightmares when I first set it up. Especially the long polling for events that was certainly driving me insane to begin with. Especially when its been set up with two ips and expects responses back to the same one that you received over the long polling as the other ip knows nothing about it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But did eventually get it tracking through calls from call centers to users properly including transfers (for the most part). Been fairly stable too apart from when the provider is doing updates but that affects the whole thing not just my connector.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:48:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643479#M534</guid>
      <dc:creator>mpcaddy</dc:creator>
      <dc:date>2022-07-04T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: xsi-actions get requests params returns limited results</title>
      <link>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643879#M535</link>
      <description>&lt;P&gt;Thanks for your understanding, its nice to hear I am not the only one that is suffering &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I accepted your post earlier as a solution&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 07:13:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/cloud-calling/xsi-actions-get-requests-params-returns-limited-results/m-p/4643879#M535</guid>
      <dc:creator>Glenn van Bavel</dc:creator>
      <dc:date>2022-07-05T07:13:46Z</dc:date>
    </item>
  </channel>
</rss>

