Difference between revisions of "GetSocialFollowers"

From LongJump Support Wiki
imported>Aeric
imported>Aeric
Line 22: Line 22:


;Returns:
;Returns:
:A [{{DOCHOST}}/javadocs/com/platform/beans/CollectionBean.html <tt>CollectionBean</tt>] containing the [{{DOCHOST}}/javadocs/com/platform/beans/SocialUserBean.html SocialUserBean]s of users who are following the resource.
:A [{{DOCHOST}}/javadocs/com/platform/beans/CollectionBean.html <tt>CollectionBean</tt>] containing the [{{DOCHOST}}/javadocs/com/platform/beans/SocialUserBean.html SocialUserBean] objects for users who are following the resource.


;Throws:
;Throws:

Revision as of 01:47, 3 December 2011

Get a list of users who are following a resource.

Syntax
CollectionsBean followers;
followers = Functions.getSocialFollowers(String type, String id, String objectId, String filter);
Parameters
  • For list of type, see relay type table in the link (to REST table) in the spec
  • type and id are required.
  • Filter is optional.
  • ObjectId is required if the type is Record.


objectName
The object name or identifier
fields
A comma-separated list of names of the fields to retrieve
criteria
A filter expression that specifies records to select.
params
An optional Parameters object that contains additional parameters:
  • param - ...
Returns
A CollectionBean containing the SocialUserBean objects for users who are following the resource.
Throws
Exception
Example
This example ....
...