Commit Graph

319 Commits

Author SHA1 Message Date
David Todd dabd1ff0e3 Add API auth wrapper to util 2018-04-24 19:54:45 -05:00
David Todd ee5e47473e version bump to 1.5.0-alpha 2018-04-24 18:18:28 -05:00
LoisaidaSam f42801ae90 Propagate refresh token error #259
https://github.com/plamere/spotipy/issues/259
(before upstream support)
2018-04-24 18:15:15 -05:00
David Todd 9c9ae86a23 obtain_token_localhost() use same arguments as prompt_for_user_token() 2018-04-24 16:20:08 -05:00
David Todd 7e38eddb49
Update README.md 2018-04-24 01:55:38 -05:00
David Todd dd88ad305c Update README 2018-04-24 01:54:33 -05:00
Cserna Zsolt f1bd67523d util.py: add local http server to serve redirects
When spotify redirects the browser to localhost, serve the page with a
simple http server implemented by HTTPServer. By this way, we can obtain
the tokens the oauth service want so provide us, and no need to input the
user the redirect URL.

This method only works when the application in spotify developer dashboard
is configured to redirect the requests to localhost.

(Added before being supported upstream: https://github.com/plamere/spotipy/pull/243)
2018-04-24 01:49:19 -05:00
Nick Sonneveld 9eb1c67726 Close request object, not the whole connection. Allows keepalive
This merges [PR-269](https://github.com/plamere/spotipy/pull/269) from
the base spotipy project ahead of it getting merged in upstream.
2018-04-24 01:21:35 -05:00
Paul Lamere 4c2c1d763a Merge pull request #217 from hugovk/update-versions
Add Python 3.5, 3.6, drop unsupported 2.6, 3.2, 3.3
2017-10-01 06:15:43 -04:00
hugovk 68e1193f45 Add Python 3.5, 3.6, drop unsupported 2.6, 3.2, 3.3 2017-10-01 11:35:59 +03:00
Paul Lamere df6c089fcb Merge pull request #213 from hugovk/patch-1
Markdown formatting and consistency
2017-09-17 17:04:37 -04:00
Hugo ffa6d77a08 Markdown formatting and consistency 2017-09-18 00:00:50 +03:00
Paul Lamere 328fc1a4ae Merge pull request #196 from nathancoleman/playlist_description_support
Playlist description support
2017-09-17 12:04:45 -04: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
Paul Lamere d31214642d Merge pull request #206 from lastfm/feature/add-show-dialog-auth-option
Add show_dialog auth url option
2017-09-17 11:57:01 -04:00
Paul Lamere 6aac91747f Merge pull request #205 from hvp/patch-1
Update user_playlists_contents.py
2017-09-17 11:55:11 -04:00
Paul Lamere 43b656dd71 Merge pull request #204 from waterafternoon/patch-1
Passing credentials into method
2017-09-17 11:54:21 -04:00
Paul Lamere 9054cfecfb Merge pull request #185 from ncordon/patch-1
Changes critical is not for !=
2017-09-17 11:50:08 -04:00
Paul Lamere c06cba6849 Merge pull request #184 from Acrobot/patch-1
Fix quote formatting according to PEP 257
2017-09-17 11:48:58 -04:00
Paul Lamere 618994c0f0 Merge pull request #183 from moyiz/master
Added support for following an artist or user
2017-09-17 11:46:53 -04:00
Paul Lamere d0143f74b0 Merge pull request #182 from happyleavesaoc/connect-api
Add connect api endpoint
2017-09-17 11:43:08 -04:00
Paul Lamere 133f66ccd9 Merge pull request #179 from richardmitic/token-scope-check
Token cache handles null scopes correctly
2017-09-17 11:40:36 -04:00
Paul Lamere cd6475f65c Merge pull request #202 from lorenzofar/master
Added recently played endpoint
2017-09-17 11:34:55 -04:00
Paul Lamere 58029fbb84 Merge pull request #173 from shantanugoel/fix_headless_execution
Fix execution on headless systems where webbrowser module may not be available
2017-09-17 11:33:44 -04:00
Paul Lamere 8297e138ca Merge pull request #191 from ErikBjare/master
Added currently playing endpoint
2017-09-17 11:32:29 -04:00
Paul Lamere a99d20470f Merge pull request #169 from jessejoe/add_cache_path_param
Add cache_path as an argument to prompt_for_user_token()
2017-09-17 11:17:37 -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
happyleaves ca3866dee6 fix append device 2017-08-17 20:57:04 -04:00
Thomas Hooper 6c3c384bf0 Add show_dialog auth url option
Optional. Whether or not to force the user to approve the app again if they’ve already done so. If false (default), a user who has already approved the application may be automatically redirected to the URI specified by redirect_uri. If true, the user will not be automatically redirected and will have to approve the app again.

From https://developer.spotify.com/web-api/authorization-guide/
2017-08-02 10:36:10 +01: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
waterafternoon 1a03750ecf Passing credentials into method
clear example of using credentials without having to use environment variables
2017-07-22 08:23:33 -07:00
Lorenzo Farinelli e1ca998b3a Added recently played endpoint 2017-07-10 23:57:33 +02:00
Nathan Coleman 4c3238fb17 Add playlist description field to create/update examples 2017-06-02 18:51:59 -05:00
Nathan Coleman f5bb6db89f Add support for description field on playlist create/update 2017-06-02 18:51:38 -05:00
Erik Bjäreholt 9d47b98eab added currently playing endpoint 2017-05-13 10:35:48 +02:00
Nacho Cordón 5171911342 Changes critical is not for != 2017-04-14 21:04:24 +02:00
Andrzej Pomirski 7a5243dd64 Fix quote formatting according to PEP 257
PEP 257 says to use three " signs instead of ' signs.
2017-04-11 15:27:51 +02:00
moyiz 233ba44827 Added support for following an artist or user 2017-04-11 14:06:15 +03:00
happyleaves 544614f4b1 connect api 2017-04-07 16:40:50 -04:00
Richard Mitic dab5e08b7a Token cache handles null scopes correctly 2017-04-01 10:03:46 +02:00
Shantanu Goel ab2f52e81a Fix execution on headless systems where webbrowser module may not be present 2017-03-21 18:38:39 +05:30
Jesse Jarzynka 403ab1cfa1 Add cache_path as an argument to prompt_for_user_token() 2017-03-08 00:51:39 -05:00
Paul Lamere 7499d8e511 Adjusted retry sleep backoff 2017-01-22 08:04:51 -05:00
Paul Lamere 6261eae0e2 Fixed warn to work with varargs 2017-01-22 07:52:00 -05:00
Paul Lamere dc996b363f Merge pull request #158 from josduj/master
Fixes error when scope is not set
2017-01-18 17:58:22 -05:00
Paul Lamere de1ec301e5 Added read_a_playlist example 2017-01-18 17:55:05 -05:00
Paul Lamere d2f047514d Merge pull request #150 from mbirtwell/state_per_authorize_tests
Add unittest for state per authorize
2017-01-18 17:38:40 -05:00
Paul Lamere e1344e2221 Proper requests version 2017-01-18 17:35:38 -05:00
Paul Lamere 8b84bd8bd0 Merge pull request #148 from mbirtwell/make_is_token_expired_public
Make is_token_expired public
2017-01-18 17:34:47 -05:00