GetPoints Documentation
GetPoints
Draft documentation version
Documentation is partial and not validated !
Description
Remark
Property DataID of returned Point is set for this Operation only if you pass more than one element in parameter DataIDs.
Version | V1 |
---|---|
Require User context | |
Authorization | |
Errors |
Request
Route
Parameters
Parameter | Required | Sample | Description |
---|---|---|---|
DataIDs | 1,2,3 | Array of Data IDs | |
WAC | WAC123456789012 | Code of BusinessAccount | |
To | 2014-09-20T13:59:20.0000000Z | Filter Point with Date (parameter T) lower or equal | |
From | 2014-09-15T13:59:20.0000000Z | Filter Point with Date (parameter T) greater or equal | |
Take | 10 | Max returned Point |
Remarks
- To override Content-type in your clients HTTP Accept Header, append the
.json
suffix or?format=json
- To embed the response in a jsonp callback, append
?callback=myCallback
Post Data sample
To=2014-09-20T13:59:20.0000000Z&From=2014-09-15T13:59:20.0000000Z&Take=10&
cURL command sample
curl -k -H "Authorization: Bearer [YOUR_ACCESS_TOKEN]" -H "Content-Type:application/json" https://api.wit-datacenter.com/WAC123456789012/Point/1,2,3?From=2014-09-15T13%3a59%3a20.0000000Z&To=2014-09-20T13%3a59%3a20.0000000Z&Take=10
Response
Returned Entity
Array of PointJSON Sample
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length [{"wType":"Point","T":"0001-01-01T00:00:00.0000000Z","V":0,"S":"String","D":0}]