Test method

Make sure your integration works properly

To test the tag integration V2, use partner_id 1 and key_id 1, and check if you get this result after having given consent on the CMP :

sddanCallback({
    "segments": [111111, 222222],
    "contextual_categories": {
        "333333": 100
    },
    "shared_taxonomy": {
        "27446": {
            "segments": [444444, 555555],
            "contextual_categories": {
                "666666": 100
            }
        }
    }
})

To test both integration with valid credentials, proceed like below.

1) User ID creation

Go to http://parasolchauffant.com/, accept terms

2) Get encrypted user ID

Go to https://partner-api.sddan.com/api/v1/public/user/partner/[PARTNER_ID]/user

Copy the encrypted user ID into your clipboard (e.g see JSON response)

3) Force user ID into segment id

Force user ID

POST https://partner-api.sddan.com/api/v1/public/user/partner/:partnerId/user/segment

Force your user ID into a Sirdata segment. Request body is JSON format

Path Parameters

NameTypeDescription

partnerId

number

Your given partner id

Query Parameters

NameTypeDescription

userId

string

Encrypted user id obtained in step 2)

Request Body

NameTypeDescription

segments

array

List of segment ids you like to force your user ID into

curl --request POST \
  --url 'https://partner-api.sddan.com/api/v1/public/user/partner/123/user/segment?userId=NThhOGZiZGE2OGFkNjQ1ZjU0ZWExOTU0u236m6%2BlAqZlUpo%2F1%2BQfCz8323YeNtOs4aV8PUduK3jCEXvsQQWnGgo4aUGW9Gcb0Y0ob5QrXXXX' \
  --header 'content-type: application/json' \
  --data '{
	"segments": [33,73]
}'

Last updated