Skip to content

nice little AWS Lambda function to gather the contents of my On Repeat playlist and send them through email

Notifications You must be signed in to change notification settings

ricardochavezt/on_repeat_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)

About

nice little AWS Lambda function to gather the contents of my On Repeat playlist and send them through email

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published