Commit Graph
538 Commits
Author SHA1 Message Date
Stephane Bruckert 14268a8a2c Add playlist_tracks example 2020-02-12 23:08:42 +00:00
Stephane Bruckert db65b98790 Bump to 2.8.0 2.8.0 2020-02-12 22:42:20 +00:00
Stephane Bruckert 94a26407a7 Fix integration tests 2020-02-12 22:27:42 +00:00
JohannesPertl 04bdd27d85 Prompt option to always show a dialog when giving permissions to Spotify (#438)
* Add show_dialog option to prompt_for_user_token()

* Adjust test_get_authorize_url_shows_dialog_when_requested
2020-02-12 20:49:26 +00:00
StefanoandStéphane Bruckert 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
S Murthy 3b0e8febc4 Linting of core subpackage + clean up imports (#437)
* Linting of OAuth2 mod. + update tests to detect core package path

* Tweak imports in tests + update tox ini to ignore Flake8 E501 error

* Tweak tox ini - ignore examples

* Remove `f`-string from OAuth2 mod.

* More import tweaks in core package + tests

* Update flake8 config. in tox ini - set line length limit to 99 chars.
2020-02-09 12:59:20 +00:00
Ritiek Malhotra c22ba27cf1 Merge pull request #436 from MLK97/master
Updated documentation for search-method
2020-02-05 21:22:11 +05:30
MLK97 9056bd1309 updated documentation for search method 2020-02-05 15:48:31 +01:00
Stephane Bruckert 93412a7b78 Add query doc link, closes #268 2020-02-02 16:04:44 +00:00
Stephane Bruckert 1ad7b909d4 Fix lint 2.7 2020-02-02 14:28:10 +00:00
Stephane Bruckert d464c63def Run CI on multiple python versions 2020-02-02 14:18:44 +00:00
Stephane Bruckert 0d8de2620f CI fix 2020-02-02 14:16:33 +00:00
Stephane Bruckert 0bd62c9118 Add unit tests to CI 2020-02-02 14:14:41 +00:00
Stephane Bruckert e8928a47a7 Seperate unit and integration tests 2020-02-02 14:11:07 +00:00
Stephane Bruckert 51637d7b2c Test for track popularity field 2020-01-26 13:55:41 +00:00
Wil Collins ff7c33e97d Support after/before in current_user_recently_played 2020-01-26 13:50:45 +00:00
CyanBook 349587ca32 Support for playlist_cover_image (#431) 2020-01-26 13:20:20 +00:00
Stephane Bruckert 26db832e24 Temporarily revert #428 2020-01-23 10:06:19 +00:00
Stephane Bruckert bc7d49ca50 Fix changelog 2020-01-22 21:39:38 +00:00
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 9df45e858e Add missing auth to doc examples, fixes #427 2020-01-21 23:34:50 +00:00
Stephane Bruckert feb31325ef Bump to 2.7.1 2.7.1 2020-01-20 22:00:36 +00:00
Stephane Bruckert 30b7ea198f Bump to 2.7.0 2.7.0 2020-01-20 21:56:54 +00:00
Stéphane Bruckert 1807905572 Support to upload playlist covers (#416) 2020-01-20 19:56:24 +00:00
Stephane Bruckert 44911f7285 Fix show_my_saved_tracks example, closes #70 2020-01-17 19:12:26 +00:00
Stéphane Bruckert dda55b25df Support for playlist_tracks,
Closes #335, closes #318
2020-01-17 18:12:13 +00:00
Stephane Bruckert 45c3e5e951 Update/remove outdated examples 2020-01-16 23:47:18 +00:00
Stephane Bruckert 7fb97ed00e No warning in python2 2020-01-16 23:30:40 +00:00
Stephane Bruckert 3d22cf29ce Deprecate old endpoints 2020-01-16 23:14:52 +00:00
Stephane Bruckert 960ee3cc8f Merge branch 'master' of github.com:plamere/spotipy 2020-01-16 22:12:06 +00:00
Stephane Bruckert 6da643e8c1 Bump to 2.6.3 2.6.3 2020-01-16 18:00:27 +00:00
Stephane Bruckert 6ff0c290a8 Python2 fix 2020-01-16 17:57:17 +00:00
Stéphane Bruckert fc0c45654a Merge pull request #423 from plamere/bump-2.6.2
Bump to 2.6.2
2.6.2
2020-01-16 17:50:33 +00:00
Stephane Bruckert ab75d3d30c Use README as PyPi description 2020-01-16 17:47:15 +00:00
Stephane Bruckert 07505d720c Bump to 2.6.2 2020-01-16 04:14:42 +00:00
Stéphane Bruckert 8c4493da99 Format 2020-01-16 04:04:21 +00:00
Stéphane Bruckert badfce64b7 Merge pull request #244 from alisha/master
Use client credentials flow to fix broken non-authorized requests in test files, fixes #193, #194
2020-01-16 04:03:07 +00:00
Stephane Bruckert 2ab985a3c8 Lint 2020-01-16 03:55:50 +00:00
Stephane Bruckert 83a1cb54ef Fix doc and readme 2020-01-16 03:54:39 +00:00
CyanBook 49011c337f Update client.py 2020-01-15 22:07:49 +01:00
CyanBook 8678cd1f20 Added playlist_tracks 2020-01-15 22:00:56 +01:00
Stéphane Bruckert 9b8c90dbe1 Merge branch 'master' into master 2020-01-15 19:16:38 +00:00
dependabot[bot]andStéphane Bruckert 7229cc4edc Bump requests from 2.3.0 to 2.20.0 (#400)
* Bump requests from 2.3.0 to 2.20.0

Bumps [requests](https://github.com/requests/requests) from 2.3.0 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](https://github.com/requests/requests/compare/v2.3.0...v2.20.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Changelog

Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
2020-01-15 10:36:55 +00:00
Stéphane Bruckert c2b6be6446 Merge pull request #269 from sonneveld/client-internal-call-refactor
Refactor client internal calls to allow keepalive
2020-01-14 13:57:45 +00:00
Stephane Bruckert c591126842 Changelog 2020-01-13 20:12:07 +00:00
Stephane Bruckert f8608c80eb Close custom session in test 2020-01-13 20:09:37 +00:00
Stéphane Bruckert 542389900f Merge branch 'master' into client-internal-call-refactor 2020-01-13 19:58:53 +00:00
Stephane Bruckert 7d507ad224 Bump to 2.6.1 2.6.1 2020-01-13 17:05:06 +00:00
Ritiek Malhotra 9c5b9c068f Merge pull request #420 from ritiek/fix-split-http-url
Trim '?<key>' when extracting ID from HTTP URLs
2020-01-13 07:09:31 -08:00
Ritiek Malhotra e6829a1139 Add a changelog entry for #420 2020-01-13 20:25:40 +05:30