Nexmo / nexmo-nodered

Node Red Nodes for The Nexmo APIs
MIT License
5 stars 6 forks source link

Voice webhook should handle GET and POST options together #23

Closed sammachin closed 5 years ago

sammachin commented 5 years ago

If you are adding custom params to the querystring of the webhook, for example with an input you need to add the from number but you set the method to POST the current node only looks at the body.

Values in the query string should also be added to the msg output of the node

sammachin commented 5 years ago

this is now implemented for a POST request where there are also query string params, the full set will appear in msg.call for a GET only the query string is passed which will contain nexmo sent values along with custom ones set in the webhook as a body with a GET request doesn't make sense.