I got inspiration for this little project from a webinar where Eddie Zaneski, a Twilio developer evangelist built the same thing using Node and Express. I wanted to do it with Phoenix and Elixir, so here it is. The only additional dependency above phoenix is ExTwilio.

You text a phone number and Twilio makes a call to the application. The app searches the spotify api and then initiates a call through Twilio and plays the song preview.

I’d appreciate any code quality feedback or hints/tips anyone might want to provide. I’m going to go over the source with Credo, but human feedback is always nice as well.