Send Binary Data Using HTTP

You need to create a binary rule before sending dataCreate Binary Rule

curl -X POST "https://v5.boodskap.io/api/push/bin/json/CustomJson" -H "accept: application/json" -H "TOKEN: YourDeviceToken" -H "Content-Type: application/json" -d '{"sensor":"WEATHER","latitude":32.779167,"longitude":-96.808891,"temperature":26,"humidity":77,"precipitation":0,"wind":11}'

The HTTP HEADER TOKEN is nothing but your Device Token

You can also send raw payload using one of the below formats

Base64

curl -X POST "https://v5.boodskap.io/api/push/base64/CustomDecoder" -H "accept: application/json" -H "TOKEN: YourDeviceToken" -H "Content-Type: text/plain" -d "eyJycG0iOjE0MzMsImhlYXQiOjM5fQ=="

HEX

curl -X POST "https://v5.boodskap.io/api/push/hex/CustomDecoder" -H "accept: application/json" -H "TOKEN: YourDeviceToken" -H "Content-Type: text/plain" -d "7b2272706d223a313433332c2268656174223a33397d"

Text (a.k.a String)

curl -X POST "https://v5.boodskap.io/api/push/text/CustomDecoder" -H "accept: application/json" -H "TOKEN: YourDeviceToken" -H "Content-Type: text/plain" -d "{\"rpm\":1433,\"heat\":39}"

File (upload file content)

curl -X POST "https://local.boodskap.io/api/push/file/CustomDecoder" -H "accept: application/json" -H "TOKEN: YourDeviceToken" -H "Content-Type: multipart/form-data" -F "[email protected];type=text/xml"

Worth Seeing