Skip to content

Instantly share code, notes, and snippets.

View hughrawlinson's full-sized avatar
⛸️
Drop your GitHub Pro sub until GitHub Drops ICE

Hugh Rawlinson hughrawlinson

⛸️
Drop your GitHub Pro sub until GitHub Drops ICE
View GitHub Profile
request = requests.post(
"https://accounts.spotify.com/api/token",
data = json.dumps({
"grant_type": "client_credentials"
}),
headers = {
"Authorization": "Basic " + str(
base64.b64encode(
(config.config["spotify"]["client_id"] +
":" + config.config["spotify"]["client_secret"]