DCS API Methods
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
.
Send Data via GET
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"
Send Data via POST
Note the requirements for sending data using the POST
method:
- The maximum allowed size is 32K.
- Set the content type to
application/x-www-form-urlencoded
.
Sample call
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'
de293fbf-b489-49b0-8daa-51ed303af695