Newer Version Available

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

User Recommendations for a Specific Action and Object Category

Returns the recommendations for the specified action and object category for the context user.
Resource
1/chatter/users/me/recommendations/action/objectCategory
or
1/chatter/users/userId/recommendations/action/objectCategory

userId must be the ID of the context user or the alias me.

Note

  • Valid values for action:
    • follow
    • join
    • view (Available in versions 25.0 and later.)
  • Valid values for object category:
    • If action is follow, object category is users, files, or records.
    • If action is join, object category is groups.
    • If action is view, object category is users, files, groups, or records.
Available since version
23.0
Requires Chatter
Yes
HTTP methods
GET, HEAD
Request parameters for GET
Parameter Name Type Description
followed String ID of a user. Provides new recommendations based on the context of this user ID.
maxResults Integer Maximum number of recommendation results; default is 10. Value must be greater than 0.
viewed String ID of a file. Provides new recommendations based on the context of this file ID.
Response body for GET
Recommendations
Example request URL with followed request parameter
1/chatter/users/me/recommendations/follow/users?followed=005D0000001GLowIAB
Example request URL with viewed request parameter
This URL provides a list of files viewed by the same people who have viewed the file you’re viewing. This is also the same value displayed in the People Also Viewed area on the file detail page for the given ID.
1/chatter/users/me/recommendations/view/files?viewed=069D00000000xNXIAY