cURL

It is possible to communicate with Databoom by using cURL.

cURL commands

From the command line digit the curl command. In order to forward requests to Databoom, the user's API key is required in the header.

There are two commands to specify an header in cURL, --header or its abbrevation -H.

curl -H 'apikey: <DATABOOM API KEY><DATABOOM SERVER URL>

Databoom data forwarding

In order to forward data to Databoom, the Content-Type header is required 

-H "Content-Type: application/json"

Data to forward, in JSON format, has to be specified within --data (or its abbrevation -d).

An example of a complete data forwarding curl command is the following:

curl --header 'Content-Type: application/json' --header 'apikey: <DATABOOM API KEY>' --data '{"device": "<DATABOOM DEVICE TOKEN>", "date":"<VALUE DATE>", "signals":[{"name": "<DATABOOM SIGNAL TOKEN>", "value": "<VALUE>"}]}' https://api.databoom.com/v1/signals/push 

Data format to be forwarded is deeply explained in the dedicated page.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.