Commit Graph

102 Commits

Author SHA1 Message Date
Peter
87a72a060f Automatic refresh of Authorization Code Flow Tokens in long-running Applications (#428)
* auto-refresh user token

* example for a long-running user-request app

* wrap long lines

* combine duplicate code into _refresh_token_if_expired method

* add changelog entry
2020-01-22 20:01:30 +00:00
Stephane Bruckert
44911f7285 Fix show_my_saved_tracks example, closes #70 2020-01-17 19:12:26 +00:00
Stephane Bruckert
45c3e5e951 Update/remove outdated examples 2020-01-16 23:47:18 +00:00
Stephane Bruckert
83a1cb54ef Fix doc and readme 2020-01-16 03:54:39 +00:00
Stéphane Bruckert
9b8c90dbe1
Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
Stéphane Bruckert
f54830e272
Add linter, solves #348 (#415) 2020-01-12 13:19:40 +00:00
Stéphane Bruckert
9b3b61bdc4
Merge pull request #224 from foxyblue/clean-examples
Clean examples
2020-01-12 00:48:11 +00:00
Stephane Bruckert
c4b302b4e2 Fix example 2020-01-12 00:22:57 +00:00
Stéphane Bruckert
2be6763d0d
Merge pull request #303 from wdr1/patch-1
Update create_playlist.py
2020-01-12 00:10:03 +00:00
Stephane Bruckert
6ab96c3c91 Clean up + missing tests 2020-01-11 23:30:57 +00:00
Ryan Lee
c610090a7c Upload user_saved_albums_delete.py 2020-01-11 19:56:32 +00:00
Harrison
d8d9f290fb remove unneccesary whitespaces, shorten some lines, and add name to contibutors 2020-01-11 19:56:00 +00:00
Ryan K. Lee
5f45a0a54e Update show_album.py
Import SpotifyClientCredentials from spotipy.oauth2
2020-01-11 19:54:21 +00:00
Ryan K. Lee
bd1a122831 Update show_artist.py
Import SpotifyClientCredentials from spotipy.oauth2
2020-01-11 19:54:21 +00:00
Ryan K. Lee
e3185e22ec Update show_artist_top_tracks.py
Import SpotifyClientCredentials from spotipy.oauth2
2020-01-11 19:54:21 +00:00
Ryan K. Lee
90f1105648 Update show_related.py
Import SpotifyClientCredentials from spotipy.oauth2
2020-01-11 19:54:21 +00:00
Ryan K. Lee
5a00758609 Update show_track_info.py
Import SpotifyClientCredentials from spotipy.oauth2
2020-01-11 19:54:21 +00:00
Ryan K. Lee
c3bae42b9e Update simple0.py
Import oath
2020-01-11 19:54:21 +00:00
Ryan K. Lee
0c453c9945 Update simple1.py
Import oath
2020-01-11 19:54:21 +00:00
Ryan K. Lee
a677267bca Update simple2.py
Add import statements for oath
2020-01-11 19:54:21 +00:00
Ryan K. Lee
faa5785a29 Update simple3.py
add import statements for oath
2020-01-11 19:54:21 +00:00
Ryan K. Lee
ba667d388c Update remove_tracks_from_playlist.py
Update comments
2020-01-11 19:54:21 +00:00
Ryan K. Lee
32a6d4867b Update remove_specific_tracks_from_playlist.py
Update comments
2020-01-11 19:54:21 +00:00
Ryan K. Lee
3ed903e6ce Update print parentheses in read_a_playlist.py 2020-01-11 19:54:21 +00:00
Ryan K. Lee
cc158c34f1 Fix comments and parentheses in my_top_tracks.py 2020-01-11 19:54:21 +00:00
Ryan K. Lee
ba6e9a0b79 Add parentheses after print in my_top_artists.py 2020-01-11 19:54:21 +00:00
Ryan K. Lee
91639996e1 Fix comments in my_playlists.py 2020-01-11 19:54:21 +00:00
William Reardon
1ea4d475b5
Update create_playlist.py
Added scope to token request
2018-06-23 20:37:58 -07:00
Alisha Ukani
63eebfa930 Use client credentials flow to fix broken non-authorized requests 2018-01-16 18:58:21 -05:00
Sebastien (Work)
6c83f09898 Format examples
Add spaces after ':' and ','.
    Remove spaces before and after '(', '{', '[', ']', '}'
    and ')'.
2017-10-23 23:02:17 +01:00
Sebastien (Work)
0b0942423c Remove spaces around keyword operator
remove space around operator '=' for keywords.
2017-10-23 22:53:20 +01:00
Sebastien (Work)
0eeeeb4a50 Remove unused imports
All imported modules that were note used in examples
    have been removed.
2017-10-23 22:50:05 +01:00
Paul Lamere
91d89c3256 Merge branch 'master' into playlist_description_support 2017-09-17 12:03:49 -04:00
Paul Lamere
0e40d2bfc2 Merge pull request #212 from wesleybratt/patch-1
update user_playlists_contents.py
2017-09-17 11:59:21 -04:00
wesleybratt
6c572ff5cd update user_playlists_contents.py
removed unused os import and unused variable 'top'
2017-09-10 20:05:42 -07:00
Harrison Perry
fc798aa684 Update user_playlists_contents.py
results was never used in the show_tracks method.
2017-07-26 17:24:25 +01:00
Nathan Coleman
4c3238fb17 Add playlist description field to create/update examples 2017-06-02 18:51:59 -05:00
Paul Lamere
de1ec301e5 Added read_a_playlist example 2017-01-18 17:55:05 -05:00
Paul Lamere
fda9172935 Added title_chain example 2017-01-02 17:21:59 -05:00
Paul Lamere
f683535165 added current_user_saved_albums_add() 2016-12-31 18:51:37 -05:00
Paul Lamere
6b8ef3f4b0 Merge branch 'support_changing_playlist_details' of https://github.com/nathancoleman/spotipy into nathancoleman-support_changing_playlist_details 2016-12-31 18:07:41 -05:00
Paul Lamere
e176e9e4a8 Merge pull request #100 from jesseward/example-show-album
Fixed show_album example to retrieve album data.
2016-12-31 11:07:10 -05:00
Paul Lamere
3a385c5181 Merge pull request #91 from felipeumanzor/patch-1
Duplicated album detection improved
2016-12-31 11:06:14 -05:00
Paul Lamere
c319176882 Merge pull request #66 from gpoul/fix-usage
Fix usage message
2016-12-31 11:00:26 -05:00
Paul Lamere
18e5811539 added current_user_playlists example 2016-12-31 10:33:31 -05:00
Paul Lamere
d18892a99e Added timeout test 2016-12-31 09:52:03 -05:00
Paul Lamere
b9af5ad719 Added audio_analysis example 2016-12-31 09:41:47 -05:00
Paul Lamere
fdff788ff2 Improved example 2016-12-31 09:41:47 -05:00
Paul Lamere
45232a2489 improved example 2016-12-31 09:41:47 -05:00
Paul Lamere
5be0ba4d94 better audio example 2016-12-31 09:41:47 -05:00