Smart Wooq Integration

This is an API which enables you to auto collect data from your IOT devices on Wooqer workapps. Periodically accumulate sensor data and visualize them in wooqer reports.

Context

This API allows data collection for the public process created from wooqer portal.

Data can be dynamic in nature and process must be set as scope public

Pre-requisites

To submit data directly from REST API, it is mandatory to have API Key generated. This API Key can be requested from wooqer.

API clients must have knowledge of available fields for the public process and purpose of the field. For example, in sample request qt1370089 is used for temperature

URI

Web URL ( Your PI )

https://hub.wooqer.com/tpub/oelprrest.do

Method

POST

Headers

X-api-key : <key-generated-from-wooqer>

Sample Request

Sample REST Request Json Object

{
    "report": {
        "evaluationId": 00702,
        "evaluationGroupId": 999945,
        "dueType": 4,
        "other": "",
        "approveEmail": false,
        "approveSms": false
    },
    "orgId": 4,
    "evalDateString": "29/07/2222",
    "otherAttrib": {
        "rq1377787": true,
        "qt1377787": "14",
        "rq1377778": true,
        "qt1377778": "15",
        "rq1377779": true,
        "qt1377779": "16"
    }   
}

 

evaluationId : Wooqer Process Evaluation ID
evaluationGroupId : Wooqer Process Coverage Group Evaluation ID
evalDateString : Process Submission Date
rq13777787 : Required Question ID
qt13777787 : Response to Required Question ID

Sample Response

200 – OK

You will get the reference ID of the successful submission.

200 - OK

{
    "result": "success",
    "others2": 777777768,
    "others1": 0.0,
    "refId": "DBIOT-2824-80",
    "others": 0.0,
    "others3": 80
}

401- Unauthorized

401- Unauthorized

{
    "result": "Unauthorized"
}

Done

Wooqer Public Process Submission API for IOT devices is integrated.