<?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: How is the proper way to use the CompressedClientLog Finesse API? in Contact Center</title>
    <link>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4702781#M13402</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/589763"&gt;@dhiarumu&lt;/a&gt;&amp;nbsp; thank you for the suggestion. I do not have JSZip in my project, is there a way to do this without JSZip?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 15:01:52 GMT</pubDate>
    <dc:creator>matthew.bavosa</dc:creator>
    <dc:date>2022-10-13T15:01:52Z</dc:date>
    <item>
      <title>How is the proper way to use the CompressedClientLog Finesse API?</title>
      <link>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4701369#M13394</link>
      <description>&lt;P&gt;Hi All, How can I best format my POST request for&amp;nbsp;CompressedClientLog?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/finesse/#!compressedclientlog%e2%80%94post-compressed-log-to-finesse/compressedclientlogpost-compressed-log-to-finesse" target="_blank" rel="noopener"&gt;CompressedClientLog—Post Compressed Log to Finesse - Finesse - Document - Cisco DevNet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CompressedClientLog—Post Compressed Log to Finesse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var data = new FormData();
var logObj = '&amp;lt;ClientLog&amp;gt;&amp;lt;logData&amp;gt;This is some logged data for the log file&amp;lt;/logData&amp;gt;&amp;lt;/ClientLog&amp;gt;';
data.append("logData", logObj);

var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function() {
  if(this.readyState === 4) {
    console.log("Gadget is now engaged" + this.responseText);
  }
});
xhr.open("POST", "https://finesse1.xyz.com/finesse/api/User/finadmin/CompressedClientLog");
xhr.send(data);&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ApiErrors&amp;gt;
  &amp;lt;ApiError&amp;gt;
    &amp;lt;ErrorType&amp;gt;Parameter Missing&amp;lt;/ErrorType&amp;gt;
    &amp;lt;ErrorData&amp;gt;logData&amp;lt;/ErrorData&amp;gt;
    &amp;lt;ErrorMessage&amp;gt;Missing logData in the ClientLog object&amp;lt;/ErrorMessage&amp;gt;
  &amp;lt;/ApiError&amp;gt;
&amp;lt;/ApiErrors&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where am I going wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:22:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4701369#M13394</guid>
      <dc:creator>matthew.bavosa</dc:creator>
      <dc:date>2022-10-11T15:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How is the proper way to use the CompressedClientLog Finesse API?</title>
      <link>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4702515#M13398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var data = new FormData();
var logObj = '&amp;lt;ClientLog&amp;gt;&amp;lt;logData&amp;gt;This is some logged data for the log file&amp;lt;/logData&amp;gt;&amp;lt;/ClientLog&amp;gt;';
data.append("logData", logObj);
var logZip = new JSZip();
logZip.file("abc.txt", window.finesse.modules.LocalStorageViewer.getContents(null, null));
                logZip.generateAsync({
                type: 'blob',
                compression: 'DEFLATE',
                compressionOptions: {
                    level: 9
                }
                }).then(function(file) {
                     var postdata = new FormData();
                    postdata.append("file", file);

                    var xhr = new XMLHttpRequest();
                    xhr.addEventListener("readystatechange", function() {
                      if(this.readyState === 4) {
                        console.log("sent" + this.responseText);
                      }
                    });
                    xhr.open("POST", "https://finessefqdn:8445/finesse/api/User/someuser/CompressedClientLog");
                    xhr.send(postdata);
                })&lt;/LI-CODE&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:54:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4702515#M13398</guid>
      <dc:creator>dhiarumu</dc:creator>
      <dc:date>2022-10-13T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How is the proper way to use the CompressedClientLog Finesse API?</title>
      <link>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4702781#M13402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/589763"&gt;@dhiarumu&lt;/a&gt;&amp;nbsp; thank you for the suggestion. I do not have JSZip in my project, is there a way to do this without JSZip?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:01:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4702781#M13402</guid>
      <dc:creator>matthew.bavosa</dc:creator>
      <dc:date>2022-10-13T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How is the proper way to use the CompressedClientLog Finesse API?</title>
      <link>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4703047#M13409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1326681"&gt;@matthew.bavosa&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There should be some alternatives for JSZip, we haven't tried others as JSZip solves the purpose.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 03:50:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/contact-center/how-is-the-proper-way-to-use-the-compressedclientlog-finesse-api/m-p/4703047#M13409</guid>
      <dc:creator>dhiarumu</dc:creator>
      <dc:date>2022-10-14T03:50:56Z</dc:date>
    </item>
  </channel>
</rss>

