Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 982 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 982 Bytes

🔧 Spotify Workers

Cloudflare Workers-based API for fetching Spotify account Data, such as the current song, 10 most recent songs and top 10 songs.

Deploying to Workers

Pre-requisties

Setup & Installation

  1. Copy the wranger.toml.example file to wrangler.toml
  2. Enter your Cloudflare Account ID into the account_id field in your wrangler.toml file
  3. Add the secrets SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET, SPOTIFY_REFRESH_TOKEN by running
    $ wrangler secret put SECRET_NAME
    
  4. Publish the worker to Cloudflare
    $ wrangler publish