or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
在 LINE LIFF 中
模擬
postback
傳送隱藏資料給機器人
taichunmin @chatbot.tw (2020/05)
Who am I?
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →範例:在 LIFF 中進行選擇
請加入這個範例的官方帳號
liff.sendMessages()
有一個奇怪的問題
https://developers.line.biz/en/reference/liff/#send-messages
來實測 Flex + 各種 action
Flex + message action
Flex + postback action
Flex + uri action
經過實測
Flex 訊息中的 action
也只能是
type=uri
為了要傳送隱藏資料
我決定從
image 訊息
動手腳
我準備了五張圖
Note:
所以我就做了
一個
3x1
的透明 pnghttps://i.imgur.com/MwS42AE.png
然後把資料藏在網址中
https://i.imgur.com/MwS42AE.png?sender=Brown
然後送出 image 訊息
收到的 Webhook Event
部落格文章連結
https://taichunmin.idv.tw/blog/2020-04-07-line-liff-send-hidden-data.html
Bonus!
輔助開發 LINE Flex 訊息的工具
請加入這個工具的官方帳號
這是受卡米哥啟發
而寫出來的工具
功能 1
直接顯示收到的 Event JSON
功能 2
貼上 Message Object 就直接 reply
功能 3
從 Flex Message Simulator
直接貼上複製下來的 JSON
部落格文章連結
https://taichunmin.idv.tw/blog/2020-04-06-line-devbot.html
可以把剛剛的範例 LIFF
複製到這個工具裡面開啟
Thanks!