#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.

#GET /questions

Provides all active surveys on your app.
Parameters
page
Type: Number
Default: 1
Current page
size
Type: Number
Default: 10
Results per page

#GET /question/:id/answers

Lets you get all the answers to a specific survey provided by readers on our Paywall.
Parameters
id
Type: String
Required
Survey ID
from
Type: Date
Default: startOfWeek(new Date())
Starting date of search
to
Type: Date
Default: endOfWeek(new Date())
Ending date of search
page
Type: Number
Default: 1
Current page
size
Type: Number
Default: 10
Results per page