spotipy/examples
Stefano 4515446a65 Auto-refresh AuthCode flow token. (#435)
* Auto-refresh AuthCode flow token.

* Reformatted.

* Reformatted.

* Removed invalid syntax.

* Removed abstract class SpotifyAuthManager.

* Fix typo on docstrings.

* Optionally try to fetch main input parameters from environment.

Implements the capability of trying to fetch the following parameters from the environment, when they're not directly passed to the authorization handler.
The affected parameters are: client_id, client_secret, redirect_uri.
An SpotifyOauthError is raised if no value gets found.

* Removed f-string for Python2 compatibility.

* Fix line-too-long.

* Remove useless import.

* Add username to docstring.

* Remove redundant return.

* Fix empty lines print statement for backward compatibility with Python2.

* Update simple4 example.

* Set optional 'as_dict' parameter on OAuth 'get_access_token'.

* Update changelog.

Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
2020-02-10 10:20:02 +00:00
..
add_a_saved_album.py added current_user_saved_albums_add() 2016-12-31 18:51:37 -05:00
add_a_saved_track.py Initial run of 2to3 2015-06-05 12:07:28 +03:00
add_tracks_to_playlist.py Remove unused imports 2017-10-23 22:50:05 +01:00
artist_albums.py Fix doc and readme 2020-01-16 03:54:39 +00:00
artist_discography.py Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
artist_recommendations.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
audio_analysis_for_track.py Format examples 2017-10-23 23:02:17 +01:00
audio_features_for_track.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
audio_features.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
change_playlist_details.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
client_credentials_flow.py Fix doc and readme 2020-01-16 03:54:39 +00:00
contains_a_saved_track.py remove unneccesary whitespaces, shorten some lines, and add name to contibutors 2020-01-11 19:56:00 +00:00
create_playlist.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
delete_a_saved_track.py Initial run of 2to3 2015-06-05 12:07:28 +03:00
errors.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
my_playlists.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
my_top_artists.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
my_top_tracks.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
read_a_playlist.py Update/remove outdated examples 2020-01-16 23:47:18 +00:00
remove_specific_tracks_from_playlist.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
remove_tracks_from_playlist.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
replace_tracks_in_playlist.py Clean up + missing tests 2020-01-11 23:30:57 +00:00
search.py Fix doc and readme 2020-01-16 03:54:39 +00:00
show_album.py Fix doc and readme 2020-01-16 03:54:39 +00:00
show_artist_top_tracks.py Fix doc and readme 2020-01-16 03:54:39 +00:00
show_artist.py Fix doc and readme 2020-01-16 03:54:39 +00:00
show_featured_playlists.py Remove unused imports 2017-10-23 22:50:05 +01:00
show_my_saved_tracks.py Fix show_my_saved_tracks example, closes #70 2020-01-17 19:12:26 +00:00
show_new_releases.py Format examples 2017-10-23 23:02:17 +01:00
show_related.py Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
show_track_info.py Fix doc and readme 2020-01-16 03:54:39 +00:00
show_tracks.py Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
show_user.py Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
simple0.py Update simple0.py 2020-01-11 19:54:21 +00:00
simple1.py Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
simple2.py Fix doc and readme 2020-01-16 03:54:39 +00:00
simple3.py Fix doc and readme 2020-01-16 03:54:39 +00:00
simple4.py Auto-refresh AuthCode flow token. (#435) 2020-02-10 10:20:02 +00:00
test_request_timeout.py Added timeout test 2016-12-31 09:52:03 -05:00
title_chain.py Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
tracks.py Use client credentials flow to fix broken non-authorized requests 2018-01-16 18:58:21 -05:00
user_playlists_contents.py Update/remove outdated examples 2020-01-16 23:47:18 +00:00
user_playlists.py Remove unused imports 2017-10-23 22:50:05 +01:00
user_public_playlists.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
user_saved_albums_delete.py Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00