Orkut Application Platform

CommunityPolls

Lets you view and manage the collection of polls a community has.

Methods

get
Retrieves one specific poll of a community.
list
Retrieves the polls of a community.

Resource Representations

An Orkut community poll.

{
  "kind": "orkut#communityPoll",
  "id": string,
  "question": string,
  "author": {
    "id": string,
    "displayName": string,
    "url": string,
    "image": {
      "url": string
    }
  },
  "totalNumberOfVotes": integer,
  "isClosed": boolean,
  "isOpenForVoting": boolean,
  "isRestricted": boolean,
  "hasVoted": boolean,
  "isSpam": boolean,
  "isMultipleAnswers": boolean,
  "creationTime": datetime,
  "endingTime": datetime,
  "lastUpdate": datetime,
  "description": string,
  "image": {
    "url": string
  },
  "links": [
    {
      "href": string,
      "rel": string,
      "type": string,
      "title": string
    }
  ],
  "communityId": integer,
  "isUsersVotePublic": boolean,
  "isVotingAllowedForNonMembers": boolean,
  "options": [
    {
      "optionId": integer,
      "description": string,
      "numberOfVotes": integer,
      "image": {
        "url": string
      }
    }
  ],
  "votedOptions": [
    integer
  ]
}
Property Name Value Description Notes
kind string Identifies this resource as a community poll. Value: "orkut#communityPoll"
id string The poll ID.
question string The poll question.
author nested object The person who created the poll.
author.id string Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
author.displayName string The name of the author, suitable for display.
author.url string The URL of the author who posted the comment [not yet implemented]
author.image object Image data about the author.
author.image.url string A URL that points to a thumbnail photo of the author.
totalNumberOfVotes integer The total number of votes this poll has received.
isClosed boolean Whether the poll is not expired if there is an expiration date. A poll is open (that is, not closed for voting) if it either is not expired or doesn't have an expiration date at all. Note that just because a poll is open, it doesn't mean that the requester can vote on it.
isOpenForVoting boolean Whether this poll is still opened for voting. A poll is open for voting if it is not closed, the user has not yet voted on it and the user has the permission to do so, which happens if he/she is either a community member or the poll is open for everybody.
isRestricted boolean Whether this poll is restricted for members only. If a poll is open but the user can't vote on it, it's been restricted to members only. This information is important to tell this case apart from the one where the user can't vote simply because the poll is already closed.
hasVoted boolean Whether the user has voted on this poll.
isSpam boolean Whether the user has marked this poll as spam. This only affects the poll for this user, not globally.
isMultipleAnswers boolean Whether this poll allows voting for more than one option.
creationTime datetime The date of creation of this poll
endingTime datetime The ending date of this poll or empty if the poll doesn't have one.
lastUpdate datetime The date of the last update of this poll.
description string The poll description.
image object The image representing the poll. Field is omitted if no image exists.
image.url string A URL that points to an image of the poll.
links[].href string URL of the link.
links[].rel string Relation between the resource and the parent object.
links[].type string Media type of the link.
links[].title string Title of the link.
communityId integer The ID of the community.
isUsersVotePublic boolean If user has already voted, whether his vote is publicly visible.
isVotingAllowedForNonMembers boolean Whether non-members of the community can vote on the poll.
options[] list List of options of this poll.
options[].optionId integer The poll option ID
options[].description string The option description.
options[].numberOfVotes integer The total number of votes that this option received.
options[].image object Image data about the poll option. Field is omitted if no image exists.
options[].image.url string A URL that points to an image of the poll question.
votedOptions[] list List of options the user has voted on, if there are any.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.