#Surveys
This part of the API allows you to retrieve all the polls related to the Survey widget, and the associated answers given by users.
#Retrieve all surveys
- Route: /questions
- Method: GET
Provides all active surveys on your app.
| Parameters | |
|---|---|
page Type: NumberDefault: 1 | Current page |
size Type: NumberDefault: 10 | Results per page |
#Retrieve survey's answerss
- Route: /questions/:id/answers
- Method: GET
Lets you get all the answers to a specific survey provided by readers on our Paywall.
| Parameters | |
|---|---|
id Type: String | Required |
from Type: DateDefault: startOfWeek(new Date()) | Starting date of search |
to Type: DateDefault: endOfWeek(new Date()) | Ending date of search |
page Type: NumberDefault: 1 | Current page |
size Type: NumberDefault: 10 | Results per page |