|
Methods defined here:
- __init__(self)
- insert = method(self, **kwargs)
- Adds a comment on a community poll.
Args:
body: object, The request body. (required)
The object takes the form of:
{
"body": "A String", # The body of the message.
"kind": "orkut#communityPollComment", # Identifies this resource as a community poll comment. Value: "orkut#communityPollComment"
"addedDate": "A String", # The date when the message was added, in RFC 3339 format.
"id": 42, # The ID of the comment.
"author": { # The creator of the comment.
"url": "A String", # The URL of the author who posted the comment [not yet implemented]
"image": { # Image data about the actor.
"url": "A String", # A URL that points to a thumbnail photo of the author.
},
"displayName": "A String", # The name of the author, suitable for display.
"id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
},
}
communityId: integer, The ID of the community whose poll is being commented. (required)
pollId: string, The ID of the poll being commented. (required)
Returns:
An object of the form
{
"body": "A String", # The body of the message.
"kind": "orkut#communityPollComment", # Identifies this resource as a community poll comment. Value: "orkut#communityPollComment"
"addedDate": "A String", # The date when the message was added, in RFC 3339 format.
"id": 42, # The ID of the comment.
"author": { # The creator of the comment.
"url": "A String", # The URL of the author who posted the comment [not yet implemented]
"image": { # Image data about the actor.
"url": "A String", # A URL that points to a thumbnail photo of the author.
},
"displayName": "A String", # The name of the author, suitable for display.
"id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
},
}
- list = method(self, **kwargs)
- Retrieves the comments of a community poll.
Args:
pageToken: string, A continuation token that allows pagination.
maxResults: integer, The maximum number of comments to include in the response.
hl: string, Specifies the interface language (host language) of your user interface.
communityId: integer, The ID of the community whose poll is having its comments listed. (required)
pollId: string, The ID of the community whose polls will be listed. (required)
Returns:
An object of the form
{
"nextPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the next page, if there are more to retrieve.
"kind": "orkut#CommunityPollCommentList", # Identifies this resource as a collection of community poll comments. Value: "orkut#CommunityPollCommentList"
"items": [ # List of community poll comments retrieved.
{
"body": "A String", # The body of the message.
"kind": "orkut#communityPollComment", # Identifies this resource as a community poll comment. Value: "orkut#communityPollComment"
"addedDate": "A String", # The date when the message was added, in RFC 3339 format.
"id": 42, # The ID of the comment.
"author": { # The creator of the comment.
"url": "A String", # The URL of the author who posted the comment [not yet implemented]
"image": { # Image data about the actor.
"url": "A String", # A URL that points to a thumbnail photo of the author.
},
"displayName": "A String", # The name of the author, suitable for display.
"id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
},
},
],
"prevPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the previous page, if there are more to retrieve.
"lastPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the last page.
"firstPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the first page.
}
- list_next = methodNext(self, previous_request, previous_response)
- Retrieves the next page of results.
Args:
previous_request: The request for the previous page.
previous_response: The response from the request for the previous page.
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|