Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Plan
Free/Premium
Country
Device
(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)
Operating System
(iOS 10, Android Oreo, Windows 10,etc.)
My Question or Issue
I am a first year high school, computer science teacher. I teach a course called Programming for Problem Solving. I want to show my students Spotify Wrapped. I want to show them APIs, especially the Spotify API. I want my students to create a playlist that incorporates all their Spotify Wrapped Playlists and creates a playlist with songs that only appeared in all of them. How can they do this? Can they use the Spotify API in CodeHS? Or would they need to code it in lie Visual Studio Code? What steps need to be taken in order to accomplish this?
One problem is that everyone has the same web address (URI) for their personal Top 100 playlist. As a result, the API only fetches the version of that playlist for the user who's logged in using the Authorization Code flow. In my opinion, this might make this project a bit too challenging for first-year high school students.
For playlists that are made by them and are publicly displayed at the user's profile, you can use Client Credentials. That is a lot easier.
Your students can copy the Wrapped playlists to an other playlist using Add to another playlist function, accessable through the tree-dots-menu of the playlist. Then they need to add the destination playlist to their profile. After that, they can use Client Credentials to get the playlist info (also the info from the playlists of the other students that are added to their profile.)
Finally, here is a Getting Started guide: https://developer.spotify.com/documentation/web-api/tutorials/getting-started
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…