Hello everyone, i'm developing a new plugin and its objective is the following:
When receing a new request to a custom route, create a new default if the user has the permissions to do so. Bonus points for being able to pass a few parameters to the route in order to make the survey a little dynamic (such as the title for instance). The objective is just to create a very simple survey without any questions, just the default configurations.
I've created a new route with the API's
createUrl
and the event
NewDirectRequest
. I now would like to create the survey upon receiving the request but i have not find anything in the API that does that. I also have not been able to fully understand how to pass parameters for routes created with NewDirectRequest.
Any help is appreciated, thank you very much.