public class ActivitiesService extends Service
| Constructor and Description |
|---|
ActivitiesService() |
| Modifier and Type | Method and Description |
|---|---|
static Request |
createActivity(Activity activity)
Returns a new Request instance which, when submitted, generates a new
activity for the current application associated with the current viewer.
|
static Request |
getActivities()
Returns a new Request instance which, when submitted, fetches the current
viewer's activities previously generated by the current application and
makes this data available as a List of Activity objects.
|
static Request |
getActivities(String guid)
Returns a new Request instance which, when submitted, fetches the specified
user's activities previously generated by the current application and makes
this data available as a List of Activity objects.
|
static Request |
getFriendActivities(String guid)
Returns a new Request instance which, when submitted, fetches the
activities previously generated by the current application for the
specified user's friends and makes this data available as a List of
Activity objects.
|
public static Request getActivities()
Activitypublic static Request getActivities(String guid)
guid - OpenSocial ID of the user whose activities are to be fetchedActivitypublic static Request getFriendActivities(String guid)
guid - OpenSocial ID of the user whose friends' activities are to be
fetchedActivitypublic static Request createActivity(Activity activity)
activity - Activity object specifying the activity parameters to pass into
the request; typically, title, titleId, and body are setActivityCopyright © 2012. All Rights Reserved.