Skip to content

Instantly share code, notes, and snippets.

@ciao-chung
Last active October 13, 2022 06:25
Show Gist options
  • Save ciao-chung/b466706c3e3ac0d6fc6d61ceb22f0928 to your computer and use it in GitHub Desktop.
Save ciao-chung/b466706c3e3ac0d6fc6d61ceb22f0928 to your computer and use it in GitHub Desktop.
line-notify.md

Line Notify CURL

Access Token換掉就可以用了

文件

https://notify-bot.line.me/doc/en/

純訊息

curl -X POST -i https://notify-api.line.me/api/notify -H "Authorization: Bearer accecc_token" -H "Content-Type: multipart/form-data" -F "message=我是訊息"

Local圖片

curl -X POST -i https://notify-api.line.me/api/notify -H "Authorization: Bearer accecc_token" -H "Content-Type: multipart/form-data" -F "message=我是訊息" -F "imageFile=@//home/ciao/Desktop/gitlab.png"

外部圖片

curl -X POST -i https://notify-api.line.me/api/notify -H "Authorization: Bearer accecc_token" -H "Content-Type: multipart/form-data" -F "message=我是訊息" -F "imageThumbnail=https://goo.gl/ChmrLf" -F "imageFullsize=https://goo.gl/ChmrLf"

貼圖

curl -X POST -i https://notify-api.line.me/api/notify -H "Authorization: Bearer accecc_token" -H "Content-Type: multipart/form-data" -F "message=我是訊息" -F "stickerPackageId=2" -F "stickerId=18"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment