mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-07 23:22:49 +00:00
Fixed proxy issue
This commit is contained in:
parent
f055db8fb3
commit
c8ff4b960a
@ -99,7 +99,7 @@ class SpotifyOAuth(object):
|
|||||||
OAUTH_TOKEN_URL = 'https://accounts.spotify.com/api/token'
|
OAUTH_TOKEN_URL = 'https://accounts.spotify.com/api/token'
|
||||||
|
|
||||||
def __init__(self, client_id, client_secret, redirect_uri,
|
def __init__(self, client_id, client_secret, redirect_uri,
|
||||||
state=None, scope=None, cache_path=None):
|
state=None, scope=None, cache_path=None, proxies=None):
|
||||||
'''
|
'''
|
||||||
Creates a SpotifyOAuth object
|
Creates a SpotifyOAuth object
|
||||||
|
|
||||||
@ -118,6 +118,7 @@ class SpotifyOAuth(object):
|
|||||||
self.state=state
|
self.state=state
|
||||||
self.cache_path = cache_path
|
self.cache_path = cache_path
|
||||||
self.scope=self._normalize_scope(scope)
|
self.scope=self._normalize_scope(scope)
|
||||||
|
self.proxies = proxies
|
||||||
|
|
||||||
def get_cached_token(self):
|
def get_cached_token(self):
|
||||||
''' Gets a cached auth token
|
''' Gets a cached auth token
|
||||||
|
Loading…
Reference in New Issue
Block a user