在發想🧐企劃主題時 必定要先了解手中有哪些厲害武器🥷 而了解 Messaging API 的概念與原理 是成為 新星挑戰賽大師 的首要條件👾 想了解最新、最實際的應用案例🚀🚀🚀 千萬不要錯過由 LINE 技術傳教士-Evan 分享的線上講座:
「LINE PROTOSTAR新星挑戰賽」就決定是你了! 📖詳情請洽活動官網: https://lin.ee/JQkcmVH/attw
LINE 平台與 Messaging API 介紹LINE Developer RelationsEvan Lin
View Slide
Evan LinLINE Technology EvangelistDeveloper Rela+onsExternal EvangelismInternal Evangelism
Messaging API介紹
Message EventImagemap messageFlex messageText messageTemplate messageLocation messageSticker messageImage messageVideo/Audio Message發送各種訊息格式
Text & Sticker message
• 關鍵字 (Keywords)• 與使⽤者更多的互動• 更符合對話情境• 猜你想什麼h"ps://developers.line.biz/en/docs/messaging-api/s7cker-list/Sticker message
• ⾏程管理• 個⼈化⼩幫⼿• 美化⽂字Emoji message
Image, Video, Audio, Location message
Template message
Imagemap message
Flex Message
Flex Message Simulatorhttps://developers.line.biz/flex-simulator/
Flex Message Simulatorh?ps://developers.line.biz/flex-simulator/
如何運作內容
什麼是 Channel?內容
什麼是 Provider?• 獨立開發者、公司或組織• Channel 建立之後是不能更動 channel 的 Provider• 請勿使⽤測試帳號到線上環境
什麼是 Provider?
Messaging API Reply event Push eventLINE PlatformLINE Bot 的兩種回應⽅式
• Push messages• Multicast messages• Broadcast messages• Narrowcast messagesPush event 的四種⽅法
如何跟 Messaging API 溝通
取得⽤⼾資訊
• Display Name• User Id• Language• Picture Url• Status Message詳細資訊https://developers.line.biz/en/reference/messaging-api/#get-profile
Icon Switch
修改⼤頭貼圖⽰與名字h?ps://developers.line.biz/en/reference/messaging-api/#icon-nickname-switch
修改⼤頭貼圖⽰與名字https://developers.line.biz/en/reference/messaging-api/#icon-nickname-switch
Quick Reply
ABC• Camera action• Camera roll action• Location action• Postback action• Message action• URI action• Datetime picker action什麼是 Quick Reply?
• Node.js• Heroku CLI• Git(Tutorial) 使⽤ Node.js 做⼀個 Sample Bothttps://developers.line.biz/en/docs/messaging-api/nodejs-sample
Rich Menu
https://developers.line.biz/en/docs/messaging-api/using-rich-menus/#introductionRich Menu 範例
ABC• 居於 LINE Bot 聊天室的下⽅• Rich menu無法在 LINE 桌⾯版使⽤(macOS, Windows).• ⽬前僅⽀援 JPEG 以及 PNG什麼是 Rich Menu?
• 圖片格式: JPEG or PNG• 寬度 (pixels): 800 to 2500• ⾼度 (pixels): 250 or more• 比率 (width/height): 1.45 or more• 檔案最⼤尺⼨: 1 MB什麼是 Rich Menu?
LINE Login透過整合 LINE Login 能夠讓您的應⽤程式更快地連結 LINE ⽤⼾https://developers.line.biz/zh-hant/docs/line-login/overview/
What’s new in 2022
2022/02/02 Rich Menu Playgroundh"ps://developers.line.biz/en/docs/messaging-api/try-rich-menu/#ac;ons-you-can-try-out-on-the-richmenu-playground
2022/04/19 Webhook Redeliveryhttps://developers.line.biz/en/news/2022/04/19/webhook-redelivery/
2022/05/13New Rich Menu ac>ons• Close rich menu• Open rich menu• Open keyboard• Open voice message input modehttps://developers.line.biz/en/news/2022/05/13/richmenu-keyboard/
Messaging API SDK• 讓您可以快速建立聊天機器人• 支援多種程式語言• Java• Python• PHP• Node.js• Go• Ruby• Perl
LINE API Status 網⾴h"ps://api.line-status.info
NFT
透過 LINE Login 與 NFT 商城綁定h?ps://engineering.linecorp.com/zh-hant/blog/how-to-use-account-link/
相關技術⽂件LINE LoginMessaging APILINE Front-end FrameworkLINE Simple Beacon
LINE API Experts
THANK YOU