def outbound_call(): song_title = request.args.get('track') track_url = spotify.get_track_url(song_title) response = twiml.Response() response.play(track_url) return str(response)
def outbound_voice(): response = twiml.Response() song_title = request.args.get("track") preview_url = spotify.get_track_url(song_title) response.play(preview_url) return str(response)