getPolls
suspend fun getPolls(broadcasterId: String, ids: List<String> = emptyList(), first: Int = 20, after: String? = null): List<Poll>
Gets a list of polls that the broadcaster created. Polls are available for 90 days after they're created.
Return
the list of polls.
Parameters
broadcasterId
the ID of the broadcaster that created the polls. This ID must match the user ID in the user access token.
ids
a list of IDs that identify the polls to return. You may specify a maximum of 20 IDs. The endpoint ignores duplicate IDs and those not owned by this broadcaster.
first
the maximum number of items to return per page in the response. The minimum page size is 1 item per page and the maximum is 20 items per page. The default is 20.
after
the cursor used to get the next page of results.