Skip to content

timestreams.select_context_within_time_range XML RPC procedure

pszjmb1 edited this page Jun 25, 2012 · 4 revisions

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

Description

A POST request containing this procedure name will have returned context records within a given start and end timestamps.The following is the procedure call signature to retrieve context records by type and value: <methodCall> <methodName>timestreams.select_context_within_time_range</methodName> <params> <param><value><string>User Name</string></value></param> <param><value><string>Password</string></value></param> <param><value><string>Start time</string></value></param> <param><value><string>End time</string></value></param> </params> </methodCall>

Parameter Description
User Name Name of blog user
Password Password of blog user
Start time (optional) The time that a context record should start to hold from. If this value is omitted then all records that hold until the end time will be returned.
End time (optional) The time that a context record should cease to hold from. If this value is omitted then all records that hold after the start time will be returned.
### Example Response ` context_id4 context_typea valueb start_time2012-05-22 13:36:12 end_time2012-06-22 13:36:47 `

Clone this wiki locally