# **2021/08/11 (LINE Notify)** ###### tags: `藍柏婷` ###### tags: `2021/08/11` ### [== 使用LINE Notify傳送貼圖與上傳圖像 ==](https://engineering.linecorp.com/zh-hant/blog/using-line-notify-to-send-stickers-and-upload-images/) :::info **因為Windows系統沒有`sudo`指令,所以要** * **安裝 [Chocolatey](https://chocolatey.org/install)** * **安裝 gsudo** ``` choco install gsudo ``` **即可使用`sudo`** **( 使用方式可參見 [gsudo - Windows 的 sudo](https://github.com/gerardog/gsudo) )** ::: :::info **也可以使用電腦中的Ubuntu 18.04 LTS,安裝即可** ::: 試跑效果 ```python Installing, this may take a few minutes... Please create a default UNIX user account. The username does not need to match your Windows username. For more information visit: https://aka.ms/wslusers Enter new UNIX username: iamai2021 Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Installation successful! To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. iamai2021@DESKTOP-EI0U259:~$ curl -X POST https://notify-api.line.me/api/notify -H 'Authorization: Bearer WWjgIOXkPZq7RrRGwIUnru3ivMPwqc1g3EMT1Ryo7lx' -F 'message=test' -F 'stickerPackageId=1' -F 'stickerId=113' {"status":200,"message":"ok"} iamai2021@DESKTOP-EI0U259:~$ curl -X POST https://notify-api.line.me/api/notify -H 'Authorization: Bearer WWjgIOXkPZq7RrRGwIUnru3ivMPwqc1g3EMT1Ryo7lx' -F 'message=test' -F 'imageFile=C:/Users/藍柏婷/Desktop/下載.jpg' {"status":200,"message":"ok"} iamai2021@DESKTOP-EI0U259:~$ curl -X POST https://notify-api.line.me/api/notify -H 'Authorization: Bearer WWjgIOXkPZq7RrRGwIUnru3ivMPwqc1g3EMT1Ryo7lx' -F 'message=pic' -F 'imageFile=open('C:/Users/藍柏婷/Desktop/下載.jpg','rb')' {"status":200,"message":"ok"} ``` ![](https://i.imgur.com/c2YAfKM.jpg) 發現圖片無法傳輸出去