mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 17:10:45 +00:00
Merge pull request #206 from lastfm/feature/add-show-dialog-auth-option
Add show_dialog auth url option
This commit is contained in:
commit
d31214642d
2 files changed
+21
-1
No files matched your search
+3
-1
@@ -160,7 +160,7 @@ class SpotifyOAuth(object):
|
||||
def is_token_expired(self, token_info):
|
||||
return is_token_expired(token_info)
|
||||
|
||||
def get_authorize_url(self, state=None):
|
||||
def get_authorize_url(self, state=None, show_dialog=False):
|
||||
""" Gets the URL to use to authorize this app
|
||||
"""
|
||||
payload = {'client_id': self.client_id,
|
||||
@@ -172,6 +172,8 @@ class SpotifyOAuth(object):
|
||||
state = self.state
|
||||
if state is not None:
|
||||
payload['state'] = state
|
||||
if show_dialog:
|
||||
payload['show_dialog'] = True
|
||||
|
||||
urlparams = urllibparse.urlencode(payload)
|
||||
|
||||
|
||||
Reference in new issue
Block a user