Hashed email address:
curl --request GET \\
--url <https://dy-api.com/v2/userprofile?cuid=e3dc597r34yfz0641a65e7ed2bv65l16&cuidType=he&affinity=true> \\
--header 'content-type: application/json' \\
--header 'DY-API-Key: baadc6ba740a352c9106dc7857a7eb9c' \\
External identifier:
curl --request GET \\
--url https://dy-api.com/v2/userprofile?cuid=-13510582476552222&cuidType=external&affinity=true \
--header 'content-type: application/json' \\
--header 'DY-API-Key: baadc6ba740a352c9106dc7857a7eb9c' \\
Custom identifier:
curl --request GET \ --url https://dy-api.com/v2/userprofile?cuid=-13510582476552222&cuidType=vipclub&affinity=true \
--header 'content-type: application/json' \
--header 'DY-API-Key: baadc6ba740a352c9106dc7857a7eb9c' \
Response:
The response includes an array with affinity properties and values for the requested user, sorted according to their ranking. If the user doesn’t have an affinity profile, the response is empty.
{
"affinity": {
"color": {
"Black": 1,
"White": 2,
"Red": 3
},
"categories": {
"Men": 1,
"Flats": 2,
"Shoes": 3,
"Trainers": 4,
"Sneakers": 5
}
}