spotify

spotipy authorization code flow

99封情书 提交于 2019-11-30 05:23:36
I am using the Spotipy python library to interact with the Spotify web api. I have worked through the API and docs but I do not see a clear example that shows how the library supports the Authorization code flow ( https://developer.spotify.com/web-api/authorization-guide/#authorization-code-flow ). I implemented a simple Authorization Code flow with the help of Spotipy. Maybe this is helpful for other people as well. Also on github: https://github.com/perelin/spotipy_oauth_demo Here is the code: from bottle import route, run, request import spotipy from spotipy import oauth2 PORT_NUMBER = 8080

Docker maven plugin ClientProtocolException (Windows 10 using Docker Toolbox)

时光怂恿深爱的人放手 提交于 2019-11-30 03:29:32
问题 I am trying to build a docker image using the docker-maven-plugin (provided by spotify: https://github.com/spotify/docker-maven-plugin) but things aren't really working out. At first I got this exception: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 I found out that I had to create an env. variable to fix this (https://github.com/spotify/docker-maven-plugin/issues/135): set DOCKER_HOST=set DOCKER_HOST=tcp://192.168.99.100:2376 So after setting that env. variable I

Get current playing song from Spotify iOS app

末鹿安然 提交于 2019-11-30 02:53:40
I'm trying to get info about the current playing song in Spotify iOS app. The scenario is as follows: Open Spotify iOS app, start playing a song. Put the app in background and open my iOS app. Is there any way I could get the song playing on Spotify, in my iOS app? I have tried using the nowPlayingItem property as described in this post, but it didn't work: On iPhone: Find out what song is currently playing? (in the iPod music player) I have tried using the [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo as described in this post, but it didn't work: Is there a way to access the

Hotkey for next song in Spotify

删除回忆录丶 提交于 2019-11-29 21:27:27
After March 2015 upgrade of Spotify the below hotkey no longer works to get next song in Spotify: ; Spotify next track <^>!p:: DetectHiddenWindows, On ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow DetectHiddenWindows, Off Return The SpotifyMainWindow" appears to be the same when checking with spy, and Ctrl-Right also still works for next song in Spotify, but the hotkey don't. How to make a hotkey for next song in the upgraded Spotify? I managed to make it work using multimedia keycodes. Here's my script: ; "CTRL + LEFT" for previous ^Left::Media_Prev ; "CTRL + RIGHT" for next

Getting Spotify API access token with Node.js/Express.js

心已入冬 提交于 2019-11-29 17:17:22
I have a web app that allows people to generate a list of songs by artists that are related to a particular artist. I want to be able to connect to the user's Spotify account and create a playlist for them from that list of songs, but I need to get an access token. I have a developer account and client ID and am trying to work through the Authorization Flow, but it's not working for me. Instead, I get this error: XMLHttpRequest cannot load https://accounts.spotify.com/authorize/?client_id=d137fe25b31c4f3ba9e29d85f…:3000/callback&scope=user-read-private%20user-read-email&state=34fFs29kd09. No

Allowing cors jQuery POST requests to Spotify API on Express.js server

只谈情不闲聊 提交于 2019-11-29 12:58:34
In order to get an access token for the Spotify API in my web app (as specified by their Web Authorization Flow), I've learned that I have to make a POST request. However, when I do so, I get the XMLHttpRequest 500 Error due to the cross-origin problem. I have already figured out how to allow CORS GET requests, but am not sure how to do the same for POST requests. This link provides configuration tips, but it leaves the actual routes for GET and POST blank. This is the relevant code for my Express.js server: app.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res

How to use “standardized track listings” in Spotify apps

让人想犯罪 __ 提交于 2019-11-29 07:55:30
The Spotify UI guidelines for Spotify apps (at https://developer.spotify.com/technologies/apps/guidelines/design/ ) say "When listing tracks in your app, use our standardized track listings". I cannot find any examples in the documentation on how to use these "standardized track listings". By using the Inspector I have found classes in list.css (such as sp-list and sp-item) which it looks like I need to use but have not been able to work out quite how to use these to recreate the look of the Spotify track listings. The Billboard Top Charts app appears to use track listings like I need, but I

Is there a Windows API for adding badges to taskbar icons?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 04:03:09
问题 Spotify recently added a feature where the taskbar icon would have a red iOS-style badge with the number of songs in your inbox. The badge itself is definitely part of the icon, but I was wondering if the number might be added with an official API. If not, how might they be doing it? I've never had more than a few songs in my inbox, so maybe it just doesn't shows 1-9 and then 10+ or something, or could they be dynamically creating the image and setting it as the icon? I wasn't aware you could

spotipy authorization code flow

女生的网名这么多〃 提交于 2019-11-29 03:54:39
问题 I am using the Spotipy python library to interact with the Spotify web api. I have worked through the API and docs but I do not see a clear example that shows how the library supports the Authorization code flow ( https://developer.spotify.com/web-api/authorization-guide/#authorization-code-flow ). 回答1: I implemented a simple Authorization Code flow with the help of Spotipy. Maybe this is helpful for other people as well. Also on github: https://github.com/perelin/spotipy_oauth_demo Here is

How does the Spotify web browser button interact with the Spotify app?

断了今生、忘了曾经 提交于 2019-11-28 23:30:15
Check out this play button, written entirely it seems, using javascript: spotify play button . Notice that pressing play will cause Spotify to start playing music. OK, I figure that's done via some app-specific protocol link (like spotify://play), although I could be wrong. But the crazy part is that if you stop playing music in Spotify, the button will be updated in the browser to show that the music has stopped playing! How does that work? You can look at its source here . Dorian The desktop runs a server at *.spotilocal.com on your computer, then on the web, the embed player ( example )