mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-07 23:22:49 +00:00
Support for client credentials flow
This commit is contained in:
parent
a78421a6e8
commit
1b75562ce4
@ -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.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.0 - January 5, 2015 -- Added session support added by akx.
|
||||||
- v2.3.2 - March 31, 2015 -- Added auto retry logic
|
- v2.3.2 - March 31, 2015 -- Added auto retry logic
|
||||||
|
- v2.3.3 - April 1, 2015 -- added client credential flow
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='spotipy',
|
name='spotipy',
|
||||||
version='2.3.2',
|
version='2.3.3',
|
||||||
description='simple client for the Spotify Web API',
|
description='simple client for the Spotify Web API',
|
||||||
author="@plamere",
|
author="@plamere",
|
||||||
author_email="paul@echonest.com",
|
author_email="paul@echonest.com",
|
||||||
|
@ -118,7 +118,7 @@ class TestSpotipy(unittest.TestCase):
|
|||||||
def test_unauthenticated_post_fails(self):
|
def test_unauthenticated_post_fails(self):
|
||||||
with self.assertRaises(SpotifyException) as cm:
|
with self.assertRaises(SpotifyException) as cm:
|
||||||
self.spotify.user_playlist_create("spotify", "Best hits of the 90s")
|
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):
|
def test_custom_requests_session(self):
|
||||||
from requests import Session
|
from requests import Session
|
||||||
|
Loading…
Reference in New Issue
Block a user