queryPolls

fun queryPolls(filter: FilterObject? = null, limit: Int? = null, next: String? = null, sort: QuerySorter<Poll>? = null): Call<QueryPollsResult>

Query polls with optional filtering, pagination, and sorting.

Return

Executable async Call responsible for querying polls.

Parameters

filter

The filter conditions to filter the polls. For available fields check Poll Queryable Fields.

limit

The maximum number of polls to return.

next

The pagination token for fetching the next set of results.

sort

The sort object for the query: Supported fields:

  • id Unique identifier of the poll

  • name Name of the poll

  • created_at Poll creation timestamp

  • updated_at Poll last update timestamp

  • is_closed Whether the poll is closed or not