LIFF + Real API
Session
ขั้นตอน / Steps
eVMS MOT
LINE Official Account
ยินดีต้อนรับสู่ eVMS MOT 🙏 ระบบจัดการผู้มาติดต่อ กระทรวงการท่องเที่ยวและกีฬา กรุณากดปุ่ม "Registration Now" ด้านล่างเพื่อลงทะเบียนเข้าใช้งาน
09:00
Visitor Management System
{
"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
/api/line/webhookรับ Webhook Events จาก LINE Platform
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
/api/line/richmenu/assignกำหนด Rich Menu ให้ผู้ใช้ตามประเภท
Request Body
lineUserIdstring*menuTypestring*•new-friend: แสดง 'Registration Now' + 'Help'
•visitor: แสดง 'ข้อมูลส่วนตัว' + 'บันทึกนัดหมาย' + 'ประวัติ'
•officer: แสดง 'ข้อมูลส่วนตัว' + 'คำขอ' + 'Bulletin'