Webhook downloading the list of surveys from an account
It is possible to retrieve the list of surveys from a user account on the Webankieta platform by calling a so-called Webhook. A Webhook is simply a URL called by another IT system or opened in a standard browser.
The URL address format is as follows:
https://app.customerhero.com/webhooks/[id_account]/[webhook_key]/[webhook_auth]/survey-list?optional_parametersid_account – ID of your account on the Webankieta platform. The account ID is available after logging into the user account in the Account -> Settings -> Integrations tab.
webhook_key and webhook_auth – Webhook key and authorization. Parameters are available after logging into the user account in the Account -> Settings -> Integrations tab. After generating the keys, you will receive their values.
optional_parameters
additional parameters specifying the recipient of the message and the time of sending the invitation. They can be sent as GET parameters or as POST parameters. These are:
type = ['survey', 'test', 'widget'] - optional. If no value is entered, it returns the SURVEY type by default.
title = internal survey title by which we can narrow down the search list.
limit = 20 - default value. Optimally, you can retrieve 50 results at once. If you want to retrieve a larger amount, use the offset parameter to skip previously retrieved results.
{
"type":"success",
"msg":"",
"data":[
{
"id":"223652",
"title":"Survey title",
"user_title":"Internal survey title",
"url_title":"survey-title",
"created_date":"2016-04-07 18:24:19",
"date_published":"2016-04-07 18:29:57",
"date_modified":"2019-10-01 07:02:32",
"date_end":null,
"security_level":"3",
"status":"1",
"type":"0",
"link":"https:\/\/moja.webankieta.pl\/",
"answers_count":"53"
},
{
....
}
]
}