twilio pseudo code