Skip to content

Instantly share code, notes, and snippets.

View hughrawlinson's full-sized avatar

Hugh Rawlinson hughrawlinson

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"]