メインコンテンツまでスキップ

List polls in chatroom

GET 

/bv/chatroom/v1/chatrooms/polls

Displays all polls available within the chatroom. Authorization requires the chatroom token.

Request

Query Parameters

    page_size int32

    Maximum value: 100. Default value: 10.

    page_token string

    A page token, received from a previous ListChatPolls API call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListChatPolls must match the call that provided the page token.

Header Parameters

    authorization string

    This API should be invoked with the chatroom token.

Responses

A successful response.

Schema
    polls object[]
  • Array [
  • id string

    Optional. Immutable. The uuid of the poll. Required if in update operation, otherwise will be an output only field.

    type stringrequired

    Possible values: [POLL_TYPE_SINGLE_CHOICE, POLL_TYPE_MULTI_CHOICE]

    Required. Indicates the type of the poll.

    status string

    Possible values: [POLL_STATUS_QUEUED, POLL_STATUS_ACTIVE, POLL_STATUS_CLOSED, POLL_STATUS_ARCHIVED]

    Output only. Indicates the status of the poll.

    votes_count int32

    Output only. Indicates the total votes in the poll.

    multi_choice object

    Optional. Required if type is POLL_TYPE_SINGLE_CHOICE or POLL_TYPE_MULTI_CHOICE.

    question stringrequired

    Required. The question of the poll.

    options object[]required

    Required. The options of the poll.

  • Array [
  • id string

    Optional. Immutable. The uuid of the option. Required if in update operation, otherwise will be an output only field.

    text stringrequired

    Required. The text of this option would be displayed to the viewer.

    corrected booleanrequired

    Required. Indicates this option would be highlighted to the viewer when the poll is closed.

    votes_count int32

    Output only. Indicates the total votes in the option.

  • ]
  • started_at date-time

    Output only. Indicates the time that the poll started.

    ended_at date-time

    Output only. Indicates the time that the poll ended.

  • ]
  • next_page_token string

    A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Loading...