Clicks

Represents user clicks on a Widget. Can only be posted.

Request Body

name required default constraints
widgetId yes
features yes
reward yes
mac yes

widgetId

A unique identifier of the widget we want to add a click to

features

A list of comma delimited features (context elements) for which we want to register a click

reward

An encrypted representation of a reward (3DES)

mac

The mac for the encrypted reward

Errors

http error code description
400 feature-missing No feature string provided
500 internal-server-error Oops! Sorry, something went wrong on our side.
400 reward-missing No reward string provided
400 widget-id-missing No widget id provided

Reference

POST /v1/clicks

Examples

Posting a single click

Request :

POST /v1/clicks HTTP/1.1
Host: api.marktplaats.nl
Content-Type: application/json

{
  "widgetId": 10000,
  "features": "feature1,feature2",
  "reward": "vydutTnBJFF=",
  "mac": "vmasgr=="
}

Response :

HTTP/1.1 201 Created