Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 952 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 952 Bytes

On Repeat bot

(a.k.a this month in music)

Update: as of November 27, 2024, Spotify has updated their API to no longer allow access to "algorithmic and Spotify-owned editorial playlists", which sadly seems to include the On Repeat playlist :(. So this project remains a nice showcase of the Spotify API and AWS SES, but is no longer functional.

This is a nice little AWS Lambda function to gather all the tracks in my On Repeat Spotify playlist and send them through email. We're using:

  • Spotify's API to get the contents of the On Repeat playlist (which is public so we can use client credentials for the authentication). No libraries, only HTTP calls
  • Mustache as a templating library to generate the email body (since it is very simple and has no dependencies)
  • AWS Simple Email Service to send the actual email (once a month to one recipient does not cost anything... I think 😅), through the AWS Node.js SDK

That's it, basically :)