spotify.py
and enter the following code: Spotify playlist won't download.requests
module to the URL corresponding to Spotify’s search API, parsing the JSON response, and grabbing the URL associated with the preview of the first track in our search.app.py
and add the following code:song_title = urllib.parse.quote(request.form['Body'])
line. Replace it with song_title = urllib.quote(request.form['Body'])
and things should work better./sms
to handle incoming text messages and to place a call using the Twilio REST Client, and /call
to handle the logic of that phone call.POST
request to /sms
with the number the message came from, the number it was sent to, and the body of the message.inbound_sms
function will be called.POST
request, this time to the /call
route to play the song that the user texted.