## <font color="#FFD700"><i class="fa fa-trophy" aria-hidden="true"></i></font>
### 2022 iThome鐵人賽
### 小題大作的 30 個 HackMD技巧 <font color="#FFD700">#27</font>
# HackMD API 打造
## LINE-BOT 賴爸特助
----
## 手機是黏在身體的一部分<!-- .element: class="fragment" data-fragment-index="1" -->
## 作筆記、收藏資料沒那麼方便<!-- .element: class="fragment" data-fragment-index="3" -->
----
## 那就結合
## LINE Message API
## x
## HackMD API
## 打造駭客MD賴爸特助吧
----
## 功能需求
- 標示@靈感作為一個獨立的靈感筆記<!-- .element: class="fragment" data-fragment-index="1" -->
- 標示@TODO作為一個連續的的代辦清單<!-- .element: class="fragment" data-fragment-index="2" -->
- 都不標示就持續附加在暫存筆記裡<!-- .element: class="fragment" data-fragment-index="3" -->
----
|![](https://hackmd.io/_uploads/HJ7VAUnzi.png)|![](https://hackmd.io/_uploads/ByPURL3Gi.png)
|:-:|:-:
----
|![](https://hackmd.io/_uploads/ryrKkP2Ms.png)|![](https://hackmd.io/_uploads/ByLd1v3fj.png)
|:-:|:-:
----
|![](https://hackmd.io/_uploads/HJD3Uu3zs.png)|![](https://hackmd.io/_uploads/Bk-Gw_3zj.png)
|:-:|:-:
----
|![](https://hackmd.io/_uploads/BkitWuG7j.png)|![](https://hackmd.io/_uploads/S1Jj-uzQo.png)
|:-:|:-:
----
## [程式碼在此](https://github.com/willismax/hackmd-line-bot-on-fly)
>https://github.com/willismax/hackmd-line-bot-on-fly
### 歡迎 Fork / Star
----
## 首先在 [LINE Developers](https://developers.line.biz/zh-hant/) 啟用一個 Channel
|![](https://hackmd.io/_uploads/rkI9MO2zs.png)|![](https://hackmd.io/_uploads/Bypl7O3Mo.png)|![](https://hackmd.io/_uploads/r1HbNu2zj.png)|![](https://hackmd.io/_uploads/r1MYX_nfs.png)
|:-:|:-:|:-:|:-:
----
## 取得以下資訊
```
CHANNEL_ACCESS_TOKEN = ''
CHANNEL_SECRET = ''
LINE_USER_ID = ''
```
----
## 部署到 Fly.io
https://hackmd.io/@wiimax/flask-on-fly
----
<h2 class="r-fit-text">THANK YOU</h2>
{"metaMigratedAt":"2023-06-17T11:18:15.459Z","metaMigratedFrom":"Content","title":"HackMD API 打造","breaks":false,"contributors":"[{\"id\":\"16a0caa2-a39b-4d8d-b3f1-bac2f0b61a6d\",\"add\":1737,\"del\":0}]"}