Modifier and Type | Class and Description |
---|---|
class |
Plus.Moments.Insert |
class |
Plus.Moments.List |
Constructor and Description |
---|
Plus.Moments() |
Modifier and Type | Method and Description |
---|---|
Plus.Moments.Insert |
insert(String userId,
String collection,
Moment content)
Record a moment representing a user's action such as making a purchase or commenting on a blog.
|
Plus.Moments.List |
list(String userId,
String collection)
List all of the moments for a particular user.
|
public Plus.Moments.Insert insert(String userId, String collection, Moment content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The ID of the user to record actions for. The only valid values are "me" and the ID of the
authenticated user.collection
- The collection to which to write moments.content
- the Moment
IOException
public Plus.Moments.List list(String userId, String collection) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.userId
- The ID of the user to get moments for. The special value "me" can be used to indicate the
authenticated user.collection
- The collection of moments to list.IOException