Been struggling with that for at least a couple weeks.
I keep thinking I could do that thing where you pass things back and forth between jQuery and PHP but … I don’t like that for several reasons. Among other things, it seems sloppy and like cheating.
I keep seeing references to cURL — I may have mentioned this before — and it frightens me. I have no idea what it is, how it works, or how to use it. It looks completely unfamiliar. My stomach hurts at the idea of jumping down another rabbit hole of learn this but you need to know this to use that and you need to know this other thing to do that.
Searching StackOverflow for “Spotify” and “PHP” returns a ton of unanswered questions from years ago.
Okay, the code in one of the two active PHP/Spotify repos is a lot easier to understand than the one I’ve been trying to understand and work with. Added bonus, it requires cURL and had that reference hyperlinked to the main cURL page at php.net. As it turns out, the cURL Introduction page made all my anxiety go away.