The following are methods for Chatter. All methods are static.
28.0
Yes
public static void deleteSubscription(String communityId, String subscriptionId)
Type: Void
To leave a group, call deleteMember(communityId, membershipId).
28.0
Yes
public static ConnectApi.FollowerPage getFollowers(String communityId, String recordId)
Type: ConnectApi.FollowerPage
28.0
Yes
public static ConnectApi.FollowerPage getFollowers(String communityId, String recordId, Integer pageParam, Integer pageSize)
Type: ConnectApi.FollowerPage
“Following” a user, group, or record is the same as “subscribing” to a user, group, or record. A “follower” is the user who followed the user, group, or record. A “subscription” is an object describing the relationship between the follower and the user, group, or record they followed.
28.0
Yes
public static ConnectApi.Subscription getSubscription(String communityId, String subscriptionId)
Type: ConnectApi.Subscription
37.0
Yes
public static ConnectApi.DigestJobRepresentation submitDigestJob(ConnectApi.DigestPeriod period)
Type: ConnectApi.DigestJob
We recommend scheduling digest jobs by implementing the Apex Schedulable interface with this method. To monitor your digest jobs from Setup, enter Background Jobs in the Quick Find box, then select Background Jobs.
global class ExampleDigestJob1 implements Schedulable { global void execute(SchedulableContext context) { ConnectApi.Chatter.submitDigestJob(ConnectApi.DigestPeriod.DailyDigest); } }
global class ExampleDigestJob2 implements Schedulable { global void execute(SchedulableContext context) { ConnectApi.Chatter.submitDigestJob(ConnectApi.DigestPeriod.WeeklyDigest); } }