Commit Graph

14 Commits

Author SHA1 Message Date
David Todd dabd1ff0e3 Add API auth wrapper to util 2018-04-24 19:54:45 -05:00
David Todd 9c9ae86a23 obtain_token_localhost() use same arguments as prompt_for_user_token() 2018-04-24 16:20:08 -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
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
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
delucks 3587e107c0 Swap use of subprocess.call for webbrowser.open in util.py 2016-12-20 22:44:03 -08:00
Joona Hoikkala 1737a550d3 Fix for python 2 to use the safe raw_input() per default 2015-06-05 12:19:38 +03:00
Joona Hoikkala d08f7a82dc Support print() as function in Python 2 2015-06-05 12:14:13 +03:00
Joona Hoikkala 1f833afa45 Initial run of 2to3 2015-06-05 12:07:28 +03:00
Paul Lamere 20870ea3ed Documentation improvements 2014-08-22 11:00:29 -04:00
Paul Lamere 080786654a Improved oauth docs 2014-08-22 09:23:06 -04:00
Paul Lamere 7601aaab58 refacord to support playlist editing 2014-08-20 14:08:49 -04:00
Paul Lamere e35ef206d5 Moved util module into main package 2014-08-17 10:28:56 -04:00