LINE OA Demo

LIFF + Real API

Session

LIFF:Not in LINE
Visitor:No session
Staff:No session

ขั้นตอน / Steps

eVMS MOT

LINE Official Account

9:41
●●●WiFi100%

eVMS MOT

วันนี้

ยินดีต้อนรับสู่ eVMS MOT 🙏 ระบบจัดการผู้มาติดต่อ กระทรวงการท่องเที่ยวและกีฬา กรุณากดปุ่ม "Registration Now" ด้านล่างเพื่อลงทะเบียนเข้าใช้งาน

09:00

eVMS MOT

Visitor Management System

MENU ▾
State Panel
Step 1/14
new-friend
{
  "id": "new-friend",
  "userType": "both",
  "order": 1,
  "channels": [
    "line"
  ],
  "roles": [
    "visitor",
    "officer"
  ],
  "nextStates": [
    "visitor-register",
    "officer-register"
  ]
}

No endpoints for this state

Click "Test All APIs" to check endpoint availability

POST/api/line/webhook

รับ Webhook Events จาก LINE Platform

auth: webhook

Request Body

eventsLineEvent[]*
destinationstring*

Verify X-Line-Signature header ด้วย channel_secret

Event types: follow, unfollow, message, postback

Follow event → ส่งข้อความต้อนรับ + assign Rich Menu (new-friend)

Postback event → handle approve/reject action

POST/api/line/richmenu/assign

กำหนด Rich Menu ให้ผู้ใช้ตามประเภท

auth: admin

Request Body

lineUserIdstring*
menuTypestring*

new-friend: แสดง 'Registration Now' + 'Help'

visitor: แสดง 'ข้อมูลส่วนตัว' + 'บันทึกนัดหมาย' + 'ประวัติ'

officer: แสดง 'ข้อมูลส่วนตัว' + 'คำขอ' + 'Bulletin'