{"id":15047908,"url":"https://github.com/smaltby/spotify-api-plusplus","last_synced_at":"2025-04-10T01:08:21.063Z","repository":{"id":67192129,"uuid":"80249651","full_name":"smaltby/spotify-api-plusplus","owner":"smaltby","description":"A C++ wrapper of the Spotify Web API","archived":false,"fork":false,"pushed_at":"2017-11-17T01:15:53.000Z","size":131,"stargazers_count":82,"open_issues_count":6,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T01:08:16.993Z","etag":null,"topics":["cplusplus-11","spotify-api"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smaltby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-01-27T21:58:20.000Z","updated_at":"2025-04-09T12:04:42.000Z","dependencies_parsed_at":"2023-03-04T06:00:16.621Z","dependency_job_id":null,"html_url":"https://github.com/smaltby/spotify-api-plusplus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaltby%2Fspotify-api-plusplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaltby%2Fspotify-api-plusplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaltby%2Fspotify-api-plusplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaltby%2Fspotify-api-plusplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smaltby","download_url":"https://codeload.github.com/smaltby/spotify-api-plusplus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137887,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cplusplus-11","spotify-api"],"created_at":"2024-09-24T21:05:57.871Z","updated_at":"2025-04-10T01:08:21.049Z","avatar_url":"https://github.com/smaltby.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spotify-api-plusplus\n\nA C++ wrapper for the Spotify Web API.\n\n## Building\n\nFirst, install necessary dependencies, if you don't already have them.\n\n    sudo apt-get install cmake\n    sudo apt-get install libcurl4-openssl-dev\n\nClone the repository\n\n    git clone https://github.com/smaltby/spotify-api-plusplus.git\n\nInitialize submodules\n\n    cd spotify-api-plusplus\n    git submodule update --init --recursive\n\nAnd finally, build using CMake\n\n    mkdir build\n    cd build\n    cmake ..\n    make\n\n## Testing\n\nRunning the unit tests for spotify-api-plusplus is a bit more complex,\nbecause you'll need a client id, client secret, and refresh token. The\nfirst two can be gotten by registering an application with Spotify\n[here](https://developer.spotify.com/my-applications/).\n\nThe refresh token requires a Spotify Premium Account. Follow\n[this](https://developer.spotify.com/web-api/authorization-guide/#authorization-code-flow)\nguide up to step 5 to acquire a refresh token. Use the following scope\n\n    scope=user-read-private%20user-read-email%20playlist-read-private%20playlist-read-collaborative%20playlist-modify-public%20playlist-modify-private%20user-follow-modify%20user-follow-read%20user-library-read%20user-library-modify%20user-read-private%20user-read-birthdate%20user-read-email%20user-top-read%20ugc-image-upload%20user-read-playback-state%20user-modify-playback-state%20user-read-currently-playing%20user-read-recently-played\n\nOnce acquired, the refresh token should work indefinetely for running the\ntest cases for this library.\n\nCreate 3 files under the root of the project, client_id.txt, client_secret.txt,\nand refresh_token.txt, containing the values you acquired previously. The\ntest cases should be able to use them to sucessfully authenticate with Spotify\nand make calls to the API.\n\nTo run the test cases, simply use\n\n    make test\n\nafter going through the steps to build the library.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmaltby%2Fspotify-api-plusplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmaltby%2Fspotify-api-plusplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmaltby%2Fspotify-api-plusplus/lists"}