Skip to content

timestreams.select_context_by_value XML RPC procedure

pszjmb1 edited this page Jul 12, 2012 · 4 revisions

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

Description

A POST request containing this procedure name will have returned context records matching the given value.The following is the procedure call signature to retrieve context records by type: <methodCall> <methodName>timestreams.select_context_by_value</methodName> <params> <param><value><string>User Name</string></value></param> <param><value><string>Password</string></value></param> <param><value><string>Context Value</string></value></param> <param><value><string>Limit</string></value></param> <param><value><string>Offset</string></value></param> </params> </methodCall>

Parameter Description
User Name Name of blog user
Password Password of blog user
Context Type An identifier (such as "Nottingham" or "1574")
Limit A positive integer value determining the number of records to return.
Offset The offset of the first row to return.

Example Response

<?xml version="1.0"?> <methodResponse> <params> <param> <value> <array><data> <value><struct> <member><name>context_id</name><value><string>7</string></value></member> <member><name>context_type</name><value><string>somecontext</string></value></member> <member><name>value</name><value><string>someValue</string></value></member> </struct></value> </data></array> </value> </param> </params> </methodResponse>