Send data to the DCS API using GET
or POST
methods.
You can send data to the DCS using either one of the GET
or POST
methods. Take a look at the sample calls below, using curl. In all three sample calls, we are adding the signals c_likes = famous popstar
and c_loves = famous actress
to the device profile 12345678901234567890123456789012345678
.
Note that the maximum allowed size for GET
calls is 8K.
curl -i "yourcompany.demdex.net/event?d_uuid=12345678901234567890123456789012345678&d_rtbd=json&c_likes=famous%20popstar&c_loves=famous%20actress"
Note the requirements for sending data using the POST
method:
application/x-www-form-urlencoded
.curl -X POST \
https://yourcompany.demdex.net/event \
-H 'content-type: application/x-www-form-urlencoded' \
-d 'c_likes=famous%20popstar&c_loves=famous%20actress&d_uuid=12345678901234567890123456789012345678'