The issue I'm having is that the latest twilio NPM package (v3.48.1 - https://github.com/twilio/twilio-node/) does not expose a Twilio.Response object and attempting to create a `new Twilio.Response()` results in a "TypeError: Twilio.Response is not a constructor" error.
What is the correct way to create a Twilio.Response for use within a Twilio Function?
Trevor
unread,
Jul 27, 2020, 12:25:43 PM7/27/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Twilio Functions
After some additional testing, Twilio.Response appears to only be available from the twilio package used within the Twilio Runtime and not from the public twilio NPM package.
Malcolm Elavia
unread,
Aug 5, 2020, 1:01:49 PM8/5/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Twilio Functions
Isn't Response the Twiml verb for Message? I think you have to use MessageResponse when responding and create when making a new message when using API?
I hope this helps - I'm a newbie so if I don't make any sense that is why =)