From 1b75562ce448a60a94b293e87c55a287dadfdcf9 Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Wed, 1 Apr 2015 10:21:56 -0400 Subject: [PATCH] Support for client credentials flow --- README.md | 1 + setup.py | 2 +- tests/tests.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 697a69f..5f0c080 100644 --- a/README.md +++ b/README.md @@ -66,3 +66,4 @@ If you have suggestions, bugs or other issues specific to this library, file the - v2.2.0 - November 15, 2014 -- Added support for user_playlist_tracks - v2.3.0 - January 5, 2015 -- Added session support added by akx. - v2.3.2 - March 31, 2015 -- Added auto retry logic +- v2.3.3 - April 1, 2015 -- added client credential flow diff --git a/setup.py b/setup.py index 91c0ad4..0a3f195 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='spotipy', - version='2.3.2', + version='2.3.3', description='simple client for the Spotify Web API', author="@plamere", author_email="paul@echonest.com", diff --git a/tests/tests.py b/tests/tests.py index 7fdea6b..0157ae5 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -118,7 +118,7 @@ class TestSpotipy(unittest.TestCase): def test_unauthenticated_post_fails(self): with self.assertRaises(SpotifyException) as cm: self.spotify.user_playlist_create("spotify", "Best hits of the 90s") - self.assertEqual(cm.exception.http_status, 403) + self.assertEqual(cm.exception.http_status, 401) def test_custom_requests_session(self): from requests import Session