Adafruit JSON Webhook

Pushsafer make it easy and safe to get push-notifications in real time on your Android or Windows mobile device, iPhone, iPad and Desktop!

Mit Pushsafer kann man in Echtzeit, einfach und sicher, Push-Benachrichtigungen auf sein iPhone, iPad, Android oder Windows Gerät sowie auf den Desktop senden lassen!

======================
Google Play
App Store
Windows Store
Homepage
ssweber

Adafruit JSON Webhook

Postby ssweber » 30. Nov 2020, 16:31

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?

User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: JSON Webhook

Postby admin » 30. Nov 2020, 17:01

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
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10

ssweber

Re: Adafruit JSON Webhook

Postby ssweber » 30. Nov 2020, 21:31

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!
Attachments
ioAdafruit.png
ioAdafruit.png (47.26 KiB) Viewed 2597 times

User avatar
admin
Site Admin
Posts: 943
Joined: 1. Dec 2014, 12:41
Location: Germany

Re: Adafruit JSON Webhook

Postby admin » 1. Dec 2020, 15:30

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]
Pushsafer DE: Dir gefällt Service und Support! Dann freuen wir uns auf deine Bewertung!
Pushsafer EN: You like Service and Support! Then we look forward to your review!

Pushsafer.com Website - iOS - Android - Windows 10


Who is online

Users browsing this forum: No registered users and 25 guests