Survey
1 min
Get a Survey
Retorna os dados de uma pesquisa, como título, data de criação, visualizações, etc.
GET
https://api.tsrtech.com.br
Body Parameters
- typestringrequiredDescription
- tokenstringrequiredDescription
- survey_idIntegerrequiredDescription
curl
curl --location --request GET 'https://api.tsrtech.com.br' \
--header 'Content-Type: application/json' \
--data '{
"type": "survey",
"token": "XXXXXX"
"survey_id": XX
}'200
{
"type": "survey",
"survey_id": "XX",
"survey_title": "Modelo",
"survey_date": "1690602827",
"survey_views": "2"
}404
{
"message": "survey not found."
}Get All Survies
Retorna uma lista com todas pesquisas da instância
GET
https://api.tsrtech.com.br
Body Parameters
- typestringrequiredDescription
- tokenstringrequiredDescription
curl
curl --location --request GET 'https://api.tsrtech.com.br' \
--header 'Content-Type: application/json' \
--data '{
"type": "allsurvies"
}
'200
{
"type": "allsurvies",
"allsurvies_id": "XX",
"allsurvies_title": "Modelo"
}404
{
"message": "no survies found."
}