-
Notifications
You must be signed in to change notification settings - Fork 0
timestreams.add_measurements XML RPC procedure
Timestreams is an API that provides functions to add and organise sensor data. This page describes the timestreams.add_measurements XML-RPC API procedure.
A POST request containing this procedure name will add multiple measurements to a measurement container for a given blog's device. The following is the procedure call signature required to add multiple measurement:
<methodCall> <methodName>timestreams.add_measurements</methodName> <params> <param><value><string>User Name</string></value></param> <param><value><string>Password</string></value></param> <param><value><string>Measurement Container Name</string></value></param> <param><value><array><data> <value><struct> <member><name>value</name><value><string>18</string></value></member> <member><name>timestamp</name><value><string>1970-01-01 00:00:01</string></value></member> </struct></value> <value><struct> <member><name>value</name><value><string>17</string></value></member> <member><name>timestamp</name><value><string>1970-01-01 00:00:01</string></value></member> </struct></value> ... </data></array></value></param> </params> </methodCall>
Parameter | Description |
---|---|
User Name | Name of blog user |
Password | Password of blog user |
Measurement Container Name | Value returned from timestreams.create_measurements |
Array of structs | Contains values and associated timestamps. Timestamps are not optional. |
<?xml version="1.0"?> <methodResponse> <params> <param> <value> <string>Number of insertions: 3</string> </value> </param> </params> </methodResponse>