Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
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)