Skip to content

timestreams.select_first_measurement XML RPC procedure

pszjmb1 edited this page Jun 22, 2012 · 3 revisions

Timestreams is an API that provides functions to add and organise sensor data. This page describes the timestreams.select_first_measurement XML-RPC API procedure.

Description

A POST request containing this procedure name will have returned the first measurement value and timestamp from a measurement container for a given blog's device. The following is the procedure call signature required to select the first measurement: <methodCall> <methodName>timestreams.select_first_measurement</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> </params> </methodCall>

Parameter Description
User Name Name of blog user
Password Password of blog user
Measurement Container Name Value returned from timestreams.create_measurements

Example Response

<?xml version="1.0"?> <methodResponse> <params> <param> <value> <struct> <member><name>id</name><value><string>1</string></value></member> <member><name>value</name><value><string>999.9</string></value></member> <member><name>timestamp</name><value><string>2012-03-02 00:34:00</string></value></member> </struct> </value> </param> </params> </methodResponse>