Newer Version Available

This content describes an older version of this product. View Latest

User Recommendations for a Specific Action and Key Prefix

Returns the recommendations of the specified action and key prefix for the logged-in user. The keyPrefix in the resource URL is the first three characters of the object ID and indicates the object type.

Resource
1/chatter/users/me/recommendations/action/idPrefix
or
1/chatter/users/userId/recommendations/action/idPrefix

userId must be the ID of the logged-in user or the alias me.

Note

  • Valid values for action:
    • follow
    • join
    • view
  • Valid values for idPrefix:
    • If action is follow, idPrefix is the key prefix for users (005), files (069), or records (such as 001 or 003).
    • If action is join, idPrefix is the key prefix for groups (0F9).
    • If action is view, idPrefix is the key prefix for users (005), files (069), groups (0F9), or records (such as 001 or 003).
Available since version
26.0
HTTP methods
GET or HEAD
Request parameters for GET or HEAD
Parameter Name Type Description
maxResults Integer Maximum number of recommendation results; default is 10. Value must be greater than 0.
followed String ID of a user. Provides new recommendations based on the context of this user ID.
viewed String ID of a file. Provides new recommendations based on the context of this file ID.
Example request URL
1/chatter/users/me/recommendations/view/001
Response body for GET or HEAD without request parameters
Zero or more account Recommendation responses