Snapshot (Live Data API Function)

This function returns a snapshot containing the current values of the Data Points / Point Names you request.

The return is very similar to the response you get from subscribe - however, there is no subscription ID.

Details

URL/snapshot
MethodGET or POST
ParameterMeaning
codesA comma-delimited list of ARDI data points
formatThe format of the returned value. This can be xml or json

Response

The response is an XML (default) or JSON encoded collection of points

Example

URL: /snapshot?codes=20:-1:23

Response (XML)
<update>
  <points>
    <point code="20:-1:23" value="0"/>
  </points>
</update>
Response (JSON)
{
   "items": [
      { "code": "20:-1:23",
        "value" : "0" }  
    ] 
 }