小弟試著透過python傳送D槽的圖片到line notify,
只傳送訊息可以成功,但一加圖片就失敗,不曉得問題出在哪,希望有大神能賜教
token = '我的token'
message = 'test'
headers = { "Authorization": "Bearer " + token }
data = { 'message': message }
files = {'imageFile': open(r'D:\Mychart.png' , 'rb')}
requests.post("https://notify-api.line.me/api/notify",headers = headers, data = data,files=files)