cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
283
Views
0
Helpful
0
Replies

How is the proper way to use the CompressedClientLog Finesse API?

matthew.bavosa
Level 1
Level 1

Hi All, How can I best format my POST request for CompressedClientLog? 

CompressedClientLog—Post Compressed Log to Finesse - Finesse - Document - Cisco DevNet

CompressedClientLog—Post Compressed Log to Finesse

 

var data = new FormData();
var logObj = '<ClientLog><logData>This is some logged data for the log file</logData></ClientLog>';
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);
<ApiErrors>
  <ApiError>
    <ErrorType>Parameter Missing</ErrorType>
    <ErrorData>logData</ErrorData>
    <ErrorMessage>Missing logData in the ClientLog object</ErrorMessage>
  </ApiError>
</ApiErrors>

 

Where am I going wrong?

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: