Readings for one unit on a point
POST
/GetExtraValues
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetExtraValues';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"machinecode":1,"pointindex":1,"unit":1,"StartDate":"2019-10-10","EndDate":"2019-10-10","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/GetExtraValues \ --header 'Content-Type: application/json' \ --data '{ "machinecode": 1, "pointindex": 1, "unit": 1, "StartDate": "2019-10-10", "EndDate": "2019-10-10", "Token": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
machinecode
required
integer
pointindex
required
integer
unit
required
Unit id, from GetUnits.
integer
StartDate
yyyy-MM-dd for a whole day, or yyyy-MM-dd HH:mm:ss (24-hour clock)
for an instant. A date-only value returns everything in that range.
string
EndDate
yyyy-MM-dd for a whole day, or yyyy-MM-dd HH:mm:ss (24-hour clock)
for an instant. A date-only value returns everything in that range.
string
Token
required
The database token returned by Login. Sent in the request body, not
in a header.
string
Responses
Section titled “Responses”Values for the requested unit.
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<object>
object
date
string
value
number format: float
unit
integer
descUnit
string
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" }, "Value": [ { "date": "2021/02/03 15:01:48", "descUnit": "Temperature" } ] }]