Blame view

exampleMassage/action.json 1.79 KB
f4bbcb63   Surasit Yerpui   เพิ่ม ตัวอย่าง ac...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
    "action": {
        "type": "text",
        "text": "Hello Quick Reply!",
        "quickReply": {
            "items": [
                {
                    "type": "action",
                    "action": {
                        "type": "uri",
                        "label": "Add to Cart",
                        "uri": "https://developers.line.me"
                    }
                },
                {
                    "type": "action",
                    "action": {
                        "type": "postback",
                        "label": "Postback",
                        "data": "action=buy&itemid=123"
                    }
                },
                {
                    "type": "action",
                    "action": {
                        "type": "datetimepicker",
                        "label": "Datetime Picker",
                        "data": "storeId=12345",
                        "mode": "datetime",
                        "initial": "2018-09-11T00:00",
                        "max": "2018-12-31T23:59",
                        "min": "2018-01-01T00:00"
                    }
                },
                {
                    "type": "action",
                    "action": {
                        "type": "camera",
                        "label": "Camera"
                    }
                },
                {
                    "type": "action",
                    "action": {
                        "type": "cameraRoll",
                        "label": "Gallery"
                    }
                },
                {
                    "type": "action",
                    "action": {
                        "type": "location",
                        "label": "Location"
                    }
                }
            ]
        }
    }
}