function-templates icon indicating copy to clipboard operation
function-templates copied to clipboard

[template request] MMS ticketing example

Open dkundel opened this issue 5 years ago • 0 comments

It would be nice to have an example template that shows how an MMS powered ticketing could work.

User flow:

  • Person visits a website (fictitious "Happy Hour" event website)
  • Person enters phone number and name
  • Person clicks "Issue ticket"
  • Button click will trigger a Twilio Function
  • Twilio Function will generate a QR code (this can contain a basic JSON for example with the name)
  • QR code is sent together with a message of Hi ${name}! Thanks for registering for the happy hour event. Here's your ticket! via Twilio Messaging (SMS with mediaUrl property)

Files needed

  • index.html, main.js and styles.css in an assets/ directory for the event website
  • issue-ticket.js in functions/ to send out the MMS
  • generate-qr-code.js as functions/ that receives data in a request parameter to generate a QR code and return it as an image data. (to be used mediaUrl prop of the MMS)

dkundel avatar Dec 05 '19 20:12 dkundel