Skip to content

Lists all polls in a region or working group.

GET
/api/groups/{groupId}/polls

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

regionId

which region to list polls for

Typeinteger
groupId*
Typestring
Required

Responses

Success
Authorization
api_key
Variables
Key
Value
regionId
groupId*
cURL
curl -X GET \
'http://localhost/api/groups/{groupId}/polls'

Samples

cURL
curl -X GET http://localhost/api/groups/{groupId}/polls
JavaScript
fetch("http://localhost/api/groups/{groupId}/polls")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/groups/{groupId}/polls");
Python
import requests
response = requests.get("http://localhost/api/groups/{groupId}/polls")
print(response.json())