How is the request transmitted?
After the client answers all questions, requests will be sent via the API at the same time as notifications to managers or to resources.
These requests from the user's application are sent in POST parameters.
The current object structure is available at https://api.bot-t.com/docs/#model-FeedbackAnswerDto
Where should I paste the link?
The public_key field is responsible for the link, fill it in as in the settings
What response is expected?
An array in JSON format is expected in response, containing the following parameters:
result(bool) - success or failure of processing (false - message will be sent and the request will be completed with the status "Answered", true - data data will be analyzed)
message(string) - error text that will be sent to the user and attached to the request response (Only if result=false)
data(array) - additional settings (Only if result=true)
data.is_repeat(bool)(optional) - true: the question needs to be asked again and the previous request deleted, false - do nothing
data.message(string)(optional) - Send the response to the user data.message and the request will be completed with the status "Answered"
Ready-made integrations
We have prepared simple examples that show how to work with the API correctly:
1) Incorrect setup, but the data will be saved to a file - https://github.com/Purt09/bott-examples/blob/main/feedback/save-in-file.php
2) An example of a response without success https://github.com/Purt09/bott-examples/blob/main/feedback/false.php
3) An example of a successful response and a request to resubmit the application https://github.com/Purt09/bott-examples/blob/main/feedback/repeat-and-message.php
free of charge and without programming knowledge BOT-T.COM