spotify

Spotify Web API Add new controllable device to Spotify devices list

廉价感情. 提交于 2019-12-10 19:29:54
问题 I try to set up a new device which is able to use Spotiy functionality over Spotify Web API. There is a API call https://developer.spotify.com/web-api/get-a-users-available-devices/ where I can get available devices. The problem is now that there is no call to add a new device to this list. The new device is not my smart phone but an external spotify certified speaker. Native Spotify application adds the external speaker in an unknown(?) way. I tried to capture some packages with Wireshark

Can we limit the throughput of a luigi Task?

为君一笑 提交于 2019-12-10 18:44:22
问题 We have a Luigi Task that request a piece of information from a 3rd party service. We are limited on the number of call requests we can perform per minute to that API call. Is there a way to specify on a per-Task basis how many tasks of this kind must the scheduler run per unit of time? 回答1: We implemented our own rate limiting in the task. Our API limit was low enough that we could saturate it with a single thread. When we received a rate limit response, we just back off and retry. One thing

How can I trigger the Spotify Play button to play when I click a link that triggers it to display?

旧街凉风 提交于 2019-12-10 15:44:16
问题 Here is the jQuery code that displays the Spotify Play button when I click the link that says "Rock the house!" $(function() { $('#partystart').toggle(function () { $(".fadeIn").addClass("party"); $("#musicbox").slideDown("300"); $("#partystart").html("<a id='partystart'>Take a break</a>"); }, function () { $(".fadeIn").removeClass("party"); $(".fadeIn").addClass("fullopacity"); $("#musicbox").slideUp("300"); $("#partystart").html("<a id='partystart'>▲ Rock the house!</a>"); }); }); Here is

Setting localhost as a Spotify redirect_uri

℡╲_俬逩灬. 提交于 2019-12-10 13:46:39
问题 I've looked here on SO and I've found a few posts about redirect_uri but I can't seem to figure out how I use Localhost as my redirect uri . Hopefully anyone can explain this to me. With kind regards, 回答1: You can follow the steps described in the Spotify's Web API Beginner's Tutorial, which runs a local server and uses localhost as part of the redirect_uri . Localhost URLs are valid as redirect_uri and useful for development purposes, though once you make your project public you will need to

Remote control API for Spotify?

别来无恙 提交于 2019-12-10 13:42:46
问题 Is there such a thing as a Spotify remote control API? I want to write an app which lets the user control the Spotify desktop client (play, pause, volume, playlists, etc.) but I can't seem to find any documentation anywhere. There are iOS and Android remote control apps out there so I'm just wondering how they do it if there isn't an API. 回答1: On Mac OS X, Spotify can be controlled 'remotely' (i.e. from other apps) using AppleScript, either using the bundled API or the System Events service.

launchWebAuthFlow with Spotify returns “Authorization page could not be loaded”

天涯浪子 提交于 2019-12-10 13:09:50
问题 I registered my app on Spotify. I made sure I had the URI added to my registered app. But still every time I run this code I keep getting the same error. I am also running this in the background so I know it's not that. What am I doing wrong? Also I tried switching /spotify with /provider_cb . var client_id = '<my_client_id>'; var redirectUri = chrome.identity.getRedirectURL() + "/spotify"; chrome.identity.launchWebAuthFlow({ "url": "https://accounts.spotify.com/authorize?client_id="+client

Change volume with spotify App API

那年仲夏 提交于 2019-12-10 06:13:22
问题 I was wondering if someone has succefully managed to change the volume with the spotify app API I can without hassle change the playstate with player.playing = true; but player.volume=0.5 will not work. Must I add a observer for this? 回答1: The documentation for the Player object does indeed say that you can set volume as a float from 0.0 to 1.0. https://developer.spotify.com/technologies/apps/docs/beta/f19ff300f8.html It's possible you're only allowed to change the volume if your app

Spotify API Create Temp Playlist Not Loading

大兔子大兔子 提交于 2019-12-09 19:04:57
问题 I'm making a little app that displays a list of the top first song of an artist's related artists. When I try and load my app for the first time, it shows nothing. But, when I "Reload Application" everything seems to work. When I constantly start "Reloading" it keeps adding more of the same tracks to the list as well. How do I stop it from continually appending more tracks to the list as well as tighten up the code so that it works on load? require([ '$api/models', '$views/list#List', '$api

Spotify - searching for silences in a track

喜你入骨 提交于 2019-12-08 15:42:42
I have been searching everywhere but haven't found any documentation about the analysis_url audio feature on Spotify API , in order to deepen my understanding on the subject. As far as I'm concerned, it learns the audio by segments , bars , beats , sample rates , fade ins and outs , keys , timbre , mode , time_signature , tempo etc what I have so far is: def analysis_url(track_ids): names = [] tids = [] for id_ in track_ids: track_id = sp.track(id_)['uri'] tids.append(track_id) track_name = sp.track(id_)['name'] names.append(track_name) features = sp.audio_features(tids) urls = [x['analysis

How to search for a user by name using Spotify Web API

风流意气都作罢 提交于 2019-12-08 13:36:32
问题 I'm trying to create an Android application that contains a feature where you can search for Spotify users by name. When using Spotify, you can search for a user by their ID or by their name. However, currently, I see no way that the Spotify Web API supports searching users by name. If you have the User ID, you can access their profile using the Web API. But I was hoping there was a way that you could run a search for the User name and get their ID that way. Spotify's Web API allows you to