spotify-syncer

command module
v0.0.0-...-8bd694f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

Spotify Syncer

A go project that syncs your liked/saved songs into a public playlist so that everyone can see an up-to-date playlist of your favorited songs.

Getting Started

Create a unique clientID and clientSecret for your app located at https://developer.spotify.com/dashboard/. Add these new IDs to the app on main.go:21 and main.go:22.

Add the redirectURI in the project http://localhost:8080/callback to the list of redirect URIs in the spotify application settings page. You may replace this if you like.

Create a new playlist that you would like to be synced with your liked songs. you do not have to create one if you already have a playlist you wish to sync. add the name of this playlist to the variable on main.go:23

important note: this app will add and remove items from the playlist, so be sure that you use either a new playlist or be completely ok with the existing playlist getting changed.

After replacing the above variables, run the command go build. run the new .exe and shablam

Documentation

Overview

This example demonstrates how to authenticate with Spotify using the authorization code flow. In order to run this example yourself, you'll need to:

  1. Register an application at: https://developer.spotify.com/my-applications/ - Use "http://localhost:8080/callback" as the redirect URI
  2. Set the SPOTIFY_ID environment variable to the client ID you got in step 1.
  3. Set the SPOTIFY_SECRET environment variable to the client secret from step 1.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL