I'll add more thorough documentation. However for quick reference:
The goal of this is to take the "Songs" in your Planning Center Service schedule to Spotify playlists. This takes about 10 minutes for initial setup, after that things run smoothly without much needed.
- Clone the repo to your local machine.
- Run
composer install
- Use the "Songs" feature within Planning Center
- Each Song must be linked to a Spotify Song (this is easy to do within Planning Center)
- Service Items for songs must be linked to the a Song.
- You'll then need to setup a Planning Center developer account.
- Create a new Personal Access Token
- Note your
Application IdandSecret
- Then head over to Spotify and create an application
- Create a new application
- You are not creating a commercial integration
- Note your
Client IDandClient Secret
Running the script is as simple as running ./sync from the root directory of the repo.
Running this for the first time will take a few extra seconds of setup, as we'll need to enter the four values we generated in Step 2.
Those values are:
- Planning Center:
Application IdSecret Key
- Spotify
Client IDClient Secret
Once you've entered these values, they'll be stored in a git ignored file at storage/auth.json and you won't need to enter them again.
Once you've setup authorization, you're good to go. You can set this up to run on a crontab, allowing it to automatically update your Spotify playlists without the need of your interaction.