This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Send notifications via pushover
#6
I will send a jpeg file attachments with pushover. But I do not know how.
Can anybody help me ?

i have tried this : 
local data_str = 'token=****************&user=*******************&device=gsm&message=snapshot.jpeg&attachment=' .. image .. '&title=LogicMachine&sound=bike&priority=0'

local res, code, headers, status = ssl.https.request(pushover_url, data_str)
 
I receive a message with an icon of a image but no my image is not there.

this is info from pushover :
other HTTP headers]

Content-Type: multipart/form-data; boundary=--abcdefg



----abcdefg

Content-Disposition: form-data; name="user"



[ your Pushover user key ]

----abcdefg

Content-Disposition: form-data; name="token"



[ your Pushover API token ]

----abcdefg

Content-Disposition: form-data; name="message"



your message here

----abcdefg

Content-Disposition: form-data; name="attachment"; filename="your_image.jpg"

Content-Type: image/jpeg



[ raw binary data of image file here ]
----abcdefg--
Reply


Messages In This Thread
RE: Send notifications via pushover - by Keitz - 30.01.2018, 18:02

Forum Jump: