Skip to main content

A simple Spotify Web API in Python

Project description

Spotify Web API in Python

Installation

pip install spotifywebapi

Setup

export SPOTIFY_CLIENT_ID=client_id_here
export SPOTIFY_CLIENT_SECRET=client_secret_here

Client

import spotifywebapi, os

sp = spotifywebapi.Spotify(os.getenv('SPOTIFY_CLIENT_ID'), os.getenv('SPOTIFY_CLIENT_SECRET'))

User

user = sp.getAuthUser(refreshtoken_for_user)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotifywebapi-1.2.7.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

spotifywebapi-1.2.7-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page