public class Plus.Moments
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Plus.Moments.Insert |
class |
Plus.Moments.List |
class |
Plus.Moments.Remove |
| Constructor and Description |
|---|
Plus.Moments() |
| Modifier and Type | Method and Description |
|---|---|
Plus.Moments.Insert |
insert(java.lang.String userId,
java.lang.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(java.lang.String userId,
java.lang.String collection)
List all of the moments for a particular user.
|
Plus.Moments.Remove |
remove(java.lang.String id)
Delete a moment.
|
public Plus.Moments.Insert insert(java.lang.String userId, java.lang.String collection, Moment content) throws java.io.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 Momentjava.io.IOExceptionpublic Plus.Moments.List list(java.lang.String userId, java.lang.String collection) throws java.io.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.java.io.IOExceptionpublic Plus.Moments.Remove remove(java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.id - The ID of the moment to delete.java.io.IOException