# LINE Notify ###### tags: `line` `notify` `api` ## 認證 ### 登錄服務 前往 https://notify-bot.line.me/my/services/new 登錄服務。  ## 發送通知訊息 ``` POST https://notify-api.line.me/api/notify HTTP/1.1 ``` 待確認:Callback URL ### Request Headers | 鍵 | 值 | | | ---------------- | ----------------------------------------------------------------------------------- | ----------------------------------- | | `Content-Type` | <UL><LI>`application/x-www-form-urlencoded`</LI><LI>`multipart/form-data`</LI></UL> | | | `Authorization` | `Bearer <權杖>` | | | `Content-Length` | | 通常 client/user-agent 會自帶此鍵值 | | `Host` | `notify-api.line.me` | 使用 Postman 時須帶此鍵值 | ### Request Parameters | | | | | | ---------------------- | ------------------- | ---- | ---------------------------------------------------------------------------------------------------------- | | `message` | `string` | 必要 | 最多`1,000`個 characters | | `imageThumbnail` | http/https 絕對網址 | | 最大尺寸為`240px`×`240px`的`JPEG` | | `imageFullsize` | http/https 絕對網址 | | 最大尺寸為`2048px`×`2048px`的`JPEG` | | `imageFile` | `blob` | | <UL><LI>支援`PNG`、`JPEG`</LI><LI>優先權高於`imageThumbnail`、`imageFullsize`</LI><LI>有上傳限制</LI></UL> | | `stickerPackageId` | `number` | | 貼圖的 Package ID<SUB>[可用的貼圖](https://devdocs.line.me/files/sticker_list.pdf)</SUB> | | `stickerId` | `number` | | 貼圖的 ID<SUB>[可用的貼圖](https://devdocs.line.me/files/sticker_list.pdf)</SUB> | | `notificationDisabled` | `boolean` | | `true`:發送訊息時不通知用戶;預設為`false` | #### 使用限制 基本上與 Business Connect API 相同。 ### Response Headers ||| |-|-| |`status`|<UL><LI>`200`:Success</LI><LI>`400`:Bad request</LI><LI>`401`:Invalid access token</LI><LI>`500`:Failure due to server error</LI></UL>| |`Content-Type`|`application/json`| ### Response Body JSON 物件。 ||| |-|-| |`status`|<UL><LI>`200`:Success</LI><LI>`400`:Bad request</LI><LI>`401`:Invalid access token</LI></UL>| |`message`|呼應`status`的相關文字內容|
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up