You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been using the Webhook Client and it's been working great! However, we just ran into a case where the response from the webhook controller needs to be XML with some static content.
Specifically, we are using Twilio and when an inbound SMS is received, we just need to respond with content type text/xml and the body <Response></Response>.
Any way to customize this?
Thanks for the great work!
The text was updated successfully, but these errors were encountered:
FYI my solution was to add a webhook_response to the config array and use a custom controller to check if that exists and run it as a function, otherwise use the usual default response. It would be ideal to have an option like that built-in so that I don't have to copy the controller and routes. The reason it makes sense to have it as a function in the config is because each webhook may or may not need the custom response.
We've been using the Webhook Client and it's been working great! However, we just ran into a case where the response from the webhook controller needs to be XML with some static content.
Specifically, we are using Twilio and when an inbound SMS is received, we just need to respond with content type
text/xml
and the body<Response></Response>
.Any way to customize this?
Thanks for the great work!
The text was updated successfully, but these errors were encountered: