{ "opencollection": "1.0.0", "info": { "name": "Twitch Drops Ads Polls API", "version": "1.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://id.twitch.tv/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Polls", "type": "folder" }, "items": [ { "info": { "name": "Twitch Get Polls", "type": "http" }, "http": { "method": "GET", "url": "https://api.twitch.tv/helix/polls", "headers": [ { "name": "Client-Id", "value": "" } ], "params": [ { "name": "broadcaster_id", "value": "", "type": "query" }, { "name": "id", "value": "", "type": "query" }, { "name": "first", "value": "", "type": "query", "description": "Maximum number of items to return" }, { "name": "after", "value": "", "type": "query", "description": "Cursor for forward pagination" } ] }, "docs": "Gets polls for a specified channel." }, { "info": { "name": "Twitch Create Poll", "type": "http" }, "http": { "method": "POST", "url": "https://api.twitch.tv/helix/polls", "headers": [ { "name": "Client-Id", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a poll for the specified channel." }, { "info": { "name": "Twitch End Poll", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.twitch.tv/helix/polls/end", "headers": [ { "name": "Client-Id", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Ends an active poll." } ] } ], "bundled": true }