Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- To create evangelists, champions out of developers by getting you excited to use Twilio!
- Receive product feedback and see different use cases. Be creative! :D
- Yes, to generate more sign-ups. We are a public company after all!
- Yes, it does look good in a Twilio interview to "eat the API dog food" and have experience using Twilio products--so use Twilio in your hacks and you can talk about it in interviews. Some former "Best use of Twilio" hackathon winners went on to intern here! Check out our [job listings](https://twilio.com/jobs)

## TODO before the hackathon
We recommend playing through [TwilioQuest](https://twilio.com/quest), a video game that makes it fun to learn how to use different Twilio products. There's also lots of tutorials and documentation you can read through (see below.)
Expand Down Expand Up @@ -82,6 +83,20 @@ client.messages.each(filter, (message) => client.calls.create({
}).then(call => console.log(call.sid)));
```

### Node.js code in a [Twilio Function](https://twilio.com/console/functions)
```js
exports.handler = function(context, event, callback) {
let twiml = new Twilio.twiml.MessagingResponse();
if(event.Body.toLowerCase().trim() == "matcha") {
twiml.message("You right. @lizziepika, lsiegle@twilio.com, promo: HACKUCI2020, https://twil.io/hackathons");
}
else {
twiml.message("No. @lizziepika, lsiegle@twilio.com, promo: HACKUCI2020, https://twil.io/hackathons");
}
callback(null, twiml);
};
```

### Python code to respond to texts
```python
from twilio.twiml.messaging_response import MessagingResponse
Expand Down