Receiving LINE Things scenario execution events

LINE automatically communicates according to the scenario set, and one execution result is sent to your channel's Webhook URL for each scenario.

Execution results include information such as user ID and device ID. They also include Base64 binary data acquired during automatic communication, such as notifications returned for BLE_NOTIFICATION triggers, information returned for GATT_READ actions, etc.

The execution of scenarios and sending of execution results to a Webhook URL may be affected by the status of LINE and the device, leading to less-than-real-time communication. See also Important notes related to using automatic communication.

Sample scenario execution results

For more information, see Messaging API reference.

{
    "type": "things",
    "timestamp": 1552375572973,
    "replyToken": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "source": {
        "type": "user",
        "userId": "u1234567890abcdef1234567890abcdef"
    },
    "things": {
        "type": "scenarioResult",
        "deviceId": "tfedcba9876543210fedcba9876543210",
        "result": {
            "scenarioId": "DUMMY_SCENARIO_ID",
            "revision": 0,
            "resultCode": "success",
            "startTime": 1552375571097,
            "endTime": 1552375571098,
            "bleNotificationPayload": "AAAAAA==",
            "actionResults": [
                {
                    "data": "mIcIAA==",
                    "type": "binary"
                },
                {
                    "type": "void"
                },
                {
                    "type": "void"
                }
            ]
        }
    }
}

{{ $t("form.question.helpful") }}

{{ $t("form.question.detail") }}

{{ $t("form.question.improve") }}

{{ $t("form.info.start") }}{{ $t("form.info.link") }}{{ $t("form.info.end") }}


{{ $t("form.result.success") }}
{{ $t("form.result.error") }}
{{ $t("form.result.errorLink") }}