Send data via API


#1

Hi!

I found detailed documentation about how to send data via the socket API. Is it possible to send data from a device via an Hologram REST API call? I could not find anything about it in the documentation. Maybe you can give me a hint or guide how to do this if possible.

Cheers,
Dominik


#2

It’s in the docs / reference section
https://hologram.io/docs/reference/cloud/http


#3

I guess its the " Data Engine Messages/Send Data Message" section.

There I can find the API URL POSThttps://dashboard.hologram.io/api/1/csr/rdm

What does “csr” and “rdm” stand for?


#4

I found “csr” in the forums Cloud Services Router.


#5

not sure what rdm stands for …

You might want to fiddle around with SoapUI if you are new to REST API like I was about two weeks ago.
https://dashboard.hologram.io/api/1 is the service endpoint
/csr/rdm is a resource
With this, if you create a GET method and pass your apikey as a parameter, it will list all CSR messages (messages in the dashboard console).
If you create a POST method and pass a json string with your apikey, deviceid and data , it will send a message to your device and you should see in the dashboard console a response message from your device or a timeout error.

(content-type application/json)
{
“apikey”:“your key here”,
“deviceid”: your_deviceid,
“data”: “Hello, Hologram!”
}


#6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.