Retrieves a suitably authorized slice of a given user's interest profile. The returned profile data will have been gathered from within the network of sites that the client has access to. This includes data from, e.g., custom taxonomies and custom parameters.
The user must be authenticated and have read access to a site/site group associated with the customer's data.
Request
The request object has the following fields:
|
Name |
Type |
Required |
Description |
|---|---|---|---|
|
|
String |
Yes |
Identifies the user whose user profile should be returned. |
|
|
String |
Yes |
The type of user identifier, i.e., tells us how to interpret /traffic/data , or a site-specific id obtained from |
|
|
Array of Strings |
No |
A list of strings that specify profile item groups to keep in the returned profile (see below for descriptions of the |
|
|
Boolean |
No |
Returns quickly if this user has not been seen recently. Cxense stores user profile information in many storage layers, where the most recently seen profiles are the quickest profiles to retrieve. In an interactive session where events are generated (and as a consequence the user profile is updated and considered a fresh profile), it may be more appropriate to return quickly than wait for a complete response on the first page view. |
|
|
Array of Strings |
No |
A set of customer-specific identifier types. If a corresponding customer identifier exists for the user, it will be included in the response.In order for this to work, the identifier would first have been added through the addExternalId() Javascript API, or through /profile/user/external/link/update . |
Response
The response object has the following fields:
|
Name |
Type |
Description |
|---|---|---|
|
id |
String |
The user identifier as specified in the request. |
|
|
String |
The user identifier type as specified in the request. |
|
|
Array of Object |
Array of profile objects containing the available parts of the user profile. User profile objects have the same structure as content profile objects, defined here . |
|
|
Array of Object |
The list of customer-specific identities the user is known as. Only present if |
The count value returned for a group will always be 1 for user profile slices. This may change in the future.
Examples
$ python cx.py /profile/user '{"id":"134483293348982983x7","type":"cx"}'
{
"id": "134483293348982983x7",
"type": "cx",
"profile" :[
{
"groups": [
{
"count":1,
"group":"xyz-cars",
"weight":0.8671875
}
],
"item": "toyota"
},
{
"groups": [
{
"count":1,
"group":"xyz-location",
"weight":0.96875
},
{
"count":1,
"group":"xyz-product",
"weight":0.96875
}
],
"item": "granada"
}]
}