\query\get

Description
Use this endpoint to get the value of a reactive query at a point in time.
URL Structure
https://api.vay.studio/query/get
Method
POST
Headers
X-Auth-Token
Required. Your API Key.
Body
at
The timestamp id to get the result from.
queryId
The reactive query id.

{
    "at": 1221981717330395100,
    "queryId": 1205653371671806000
}
                
Returns
result.user Number
The user id that created the query.
result.id Number
The reactive query id.
result.at Number
The reactive query's timestamp id.
result.result Object[]
The query result at the point in time.
result.properties Object | null
Other reactive query metadata.

{
    "errorCode": 0,
    "error": "",
    "result": {
        "user": 1205624629821964300,
        "id": 1205653371671806000,
        "at": 1221981717330395100,
        "result": [
            {
                "injured_sum": "12152",
                "killed_sum": "115"
            }
        ],
        "properties": {}
    }
}
            
vay logo

© Copyright 2019 Vay Technologies LLC.
All rights reserved.