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
.xmlsuffix or?format=xml - 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/xml" 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 PointXML Sample
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfPoint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://api.wit-datacenter.com/">
<Point>
<D>0</D>
<S>String</S>
<T>0001-01-01T00:00:00</T>
<V>0</V>
</Point>
</ArrayOfPoint>
SDK DotNet
SDK Android
SDK IOS