🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

spotifywebapi

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotifywebapi

A simple Spotify Web API in Python

1.2.8
Maintainers
1

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)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts