Open dkundel opened 2 years ago
@dkundel - i would like to work on this issue. Needed clarification on step 4 above. When you say - Trigger the event - did you mean say for example - whatsapp event? How do i trigger that? - Thanks
@meeraj257 to trigger a WhatsApp webhook you would need to setup the WhatsApp Sandbox (or your own WhatsApp number if you have one) to deliver webhook events to the ngrok URL that you created in step 2.
Then send a message to the WhatsApp number which will trigger the event and cause Twilio to send the webhook request to your URL so you can inspect the incoming parameters in step 5.
@philnash - thanks for the info. I will start working on this issue. Pls assign to me.
Assigned!
@philnash - i got the event samples for whatsapp and mms. Is sync referring to syncing sms msgs to other devices - for e.g - sharing same apple Id - for iOS?
Sync refers to the product Twilio Sync.
@philnash @dkundel - I have raised the PR for this issue. Pls review
Right now the only two event types that are supported are:
voice
sms
Other's that would be helpful to have are:
mms
whatsapp
sync
How to create new event types
utils/webhook-events/sms.js
file and name it<eventName>.js
for examplewhatsapp.js
.options
array for thetype
flag inside thesrc/commands/webhook/invoke.js
file.