List polls
This action retrieves a paginated list of both open and closed polls in an application or a specific channel. To retrieve polls in a specific channel, the channel_url
must be specified.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Optional
Parameter name | Type | Description |
---|---|---|
channel_url | string | Specifies the URL of the channel. If not specified, all open and closed polls in the client app are retrieved. If |
channel_type | string | Specifies the type of the channel. Acceptable values are |
token | string | Specifies a page token that indicates the starting index of results to retrieve. You can get this value from the |
limit | integer | Specifies the number of polls to return per page. Acceptable values are |
Response
If successful, this action returns a list of poll resources in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
polls | array of objects | An array of polls that match the specified optional parameters. |
next | string | The value for the |
In the case of an error, an error object is returned. A detailed list of error codes is available here.