Receiving LINE Things scenario execution events
# 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.
{
"destination": "xxxxxxxxxx",
"events": [
{
"replyToken": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"type": "things",
"mode": "active",
"timestamp": 1552375572973,
"source": {
"type": "user",
"userId": "U1234567890abcdef1234567890abcdef"
},
"webhookEventId": "01FZ74A0TDDPYRVKNK77XKC3ZR",
"deliveryContext": {
"isRedelivery": false
},
"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"
}
]
}
}
}
]
}