BehnH / spotify-workers

Read-only Spotify API using Cloudflare Workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🔧 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
    

About

Read-only Spotify API using Cloudflare Workers

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%