Page 1 of 1

Adafruit JSON Webhook

Posted: 30. Nov 2020, 16:31
by ssweber
Hello,
I'm trying to setup triggers via io.adafruit.com to post to pushsafer.

I can get a simple post to work, such as https://www.pushsafer.com/api?k=KKKKKKK ... KKK&m=Test

However, I'd like to use the additional json functionality, see pic at https://blog.adafruit.com/2020/08/06/ad ... dafruitio/

Is that something that is already available, or could be easily implemented?

Re: JSON Webhook

Posted: 30. Nov 2020, 17:01
by admin
Hello,

do you really want to use pushsafer json response in adafruit?

I think you want to use values from a JSON response from a other adafruit service and send it as a push-notification via pushsafer!
I'am right?

Kevin

Re: Adafruit JSON Webhook

Posted: 30. Nov 2020, 21:31
by ssweber
I'm sorry I should have posted a screenshot to better explain. See picture.

My PLC publishes mqtt to io.adafruit.com. Then I create triggers based on the values of those fields.

They are setup to send the values as json, not as URL-encoded POST. Is there a way to send JSON to pushsafer? Or only URL-style?

I can work around it if that's the case, just checking!

Re: Adafruit JSON Webhook

Posted: 1. Dec 2020, 15:30
by admin
request to Pushsafer don't support JSON.
But can you provide tese values in the Pushsafer API URL like

Code: Select all

https://www.pushsafer.com/api?k=[yourkey]&m=[yourmessage]&t=[yourtitle]&d=[yourdeviceid]