Page 1 of 1

Thingsboard REST API Call

Posted: 11. Jan 2021, 20:07
by puck91
Hi together,

I am using thingsboard.io to monitor sensors and thresholds.
Basically Thingsboard is supporting a REST Post request, but actually I won't get it working.

Does anybody have experience with Thingsboard connecting to the REST API of Pushsafer?

Code: Select all

URL: https://www.pushsafer.com/api
Request Method: POST
Content-type application/x-www-form-urlencoded
Data: "t=Response&m=Bad&s=1&v=1&i=1&d=gs1111&k=xxxxxxxxxxxx"
Thank in advance,

Re: Thingsboard REST API Call

Posted: 11. Jan 2021, 21:12
by admin
Hi,

the telegram example you should read and adapt to pushsafer
https://thingsboard.io/docs/user-guide/ ... egram-bot/

or cURL should also an option

Code: Select all

curl -v -X POST -d "t=title&m=message&d=deviceid&i=icon" https://www.pushsafer.com/api --header "Content-Type:application/x-www-form-urlencoded"
Kevin