Skip to content

Returns the details of a poll.

GET
/api/polls/{pollId}

Authorizations

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

Parameters

Path Parameters

pollId*

which poll to return

Typeinteger
Required

Responses

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

Samples

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