Thermal image for a measurement
POST
/GetThermoData
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetThermoData';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"fileID":1,"machineCode":1,"pointIndex":1,"Token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eianalytic.com/ApiWeb.svc/GetThermoData \ --header 'Content-Type: application/json' \ --data '{ "fileID": 1, "machineCode": 1, "pointIndex": 1, "Token": "example" }'Returns the thermal image base64-encoded. Decode it to bytes to obtain the JPEG.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fileID
required
File id, from a measurement response.
integer
machineCode
required
integer
pointIndex
required
integer
Token
required
The database token returned by Login. Sent in the request body, not
in a header.
string
Examplegenerated
{ "fileID": 1, "machineCode": 1, "pointIndex": 1, "Token": "example"}Responses
Section titled “Responses”One base64 JPEG per image.
Media typeapplication/json
Array<object>
object
Key
The Key half of every response envelope.
object
StatusNumber
required
0 means OK. See the Conventions page for the full table.
integer
Description
required
string
Configs
Present on some responses; empty in the documented examples.
Array<object>
object
Value
Array<string>
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" } }]