spotify

music.listen returns an empty array

陌路散爱 提交于 2019-12-06 10:17:20
问题 I'm working on a Spotify in-app application. I like to know what my friends are listening. I'm currently using music.listen open graph api, but it returns an empty data for most of users. I signed up a new facebook account then signed in Spotify using the new account. I clikced a song then logged out. I then switched back my original account then I get data for the new facebook account (which is friend of my original account) so my guess is that music.listen works for only new users (or

problem playing songs via the spotify web api and javascript

こ雲淡風輕ζ 提交于 2019-12-06 07:14:34
I am working on building a web-based application that interfaces with spotify. I started with C# and had no problem accessing the API, pulling my playlist and pulling tracks off of it but it seems you cannot play songs with the spotify Web API located here: https://developer.spotify.com/documentation/web-api/ I then started looking at the Web Playback API located here: https://developer.spotify.com/documentation/web-playback-sdk/ I intend to write most of it in c# because my c# is much stronger than my javascript. The c# piece is working. I can get an authorization token, pull my playlists and

Spotify WebAPI authorization - client credentials flow error invalid_client

烂漫一生 提交于 2019-12-06 06:12:26
问题 Straight forward question, hopefully with a straight forward answer. I'm attempting to implement the client credentials flow via Node.js, using request. Here's my code var request = require('request'); var payload = config.spotify.clientID + ":" + config.spotify.clientSecret; var encodedPayload = new Buffer(payload).toString("base64"); var opts = { url: "https://accounts.spotify.com/api/token", method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded", "Authorization":

Refresh token spotipy

扶醉桌前 提交于 2019-12-06 05:45:37
问题 I am using spotipy to retrieve some tracks from Spotify using python . I get a token expiration error thus, I want to refresh my token. But I don't understand how to get the refresh token from spotipy. Is there another way to refresh the token or recreate one? Thank you. 回答1: The rough process that Spotipy takes with access tokens is: Get the token from the cache (is actually more than just access token, also refresh and expiry date info) If token was in the cache and has expired, refresh it

Spotify API Web : OAuth without Node.js

…衆ロ難τιáo~ 提交于 2019-12-05 22:11:43
I used the Web API Spotify. I followed the tutorial ( https://developer.spotify.com/web-api/tutorial/ ) to create authentication. However, it using Node.js and I wonder if we can do without it? (the rest of my code is in javascript and does not require Node.js) Thank you in advance. Vincent Leveque You can work with Spotify's Web API using only frontend code. You might want to have a look at the JavaScript wrapper as it offers language bindings for all API endpoints so it should save you a lot of time. If you're working without a backend, the only way to retrieve access tokens is through the

Fetch the current track info from Spotify app after March 2015 update

夙愿已清 提交于 2019-12-05 21:17:20
I want to pull out the current track information from Spotify windows client using autohotkey. Although this question Hotkey for next song in Spotify solved some of the problems (the media playback issues) in the commonly used ahk script (can be found in this question: Newest Spotify update: Autohotkeys script broke and below), the track info shortcut still does not work. ^Down:: { DetectHiddenWindows, On SetTitleMatchMode 2 WinGetTitle, now_playing, ahk_class SpotifyMainWindow ;StringTrimLeft, playing, now_playing, 10 DetectHiddenWindows, Off clipboard = %playing%`r`n return } This will give

Change volume with spotify App API

家住魔仙堡 提交于 2019-12-05 18:07:57
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? 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 initiated the playback that's occurring. 来源: https://stackoverflow.com/questions/10822979/change-volume-with-spotify

Spotify for mac(音乐播放软件)

人盡茶涼 提交于 2019-12-05 17:03:06
Spotify是搜集到的Mac os系统上一款音乐播放器,简洁的播放风格,丰富的音乐资源,是音乐爱好者的不二直之选。无论您喜欢驾驶摇滚,丝滑的R&B,还是宏伟的古典音乐,Spotify的大型目录将您所有的收藏都放在您的位置。 https://www.macdown.com spotify mac软件功能介绍 使用任何装置,不论是行动装置、平板电脑或电脑,都可以随时随地播放任何歌曲 下载音乐以便离线聆听。 享受令人惊艳的一流音质。 没有广告 – 毫无干扰的音乐盛宴。 无须签订任何合约 - 随时都可取消。你喜欢的音乐,无论何时你想要它你是DJ。添加您喜爱的曲目,并创建播放列表。Spotify让您随时掌控您的收藏夹。 无尽的发现。通过内置的相关艺术家建议,Spotify将帮助您发现您最喜爱的艺术家,专辑和曲目。 让它社交。关注您最喜爱的艺术家,与朋友分享音乐推荐等。 Spotify Mac版主要特点 ●跨平台,支持MAC和Windows,linux系统下的ubuntu和debian。 ● 高音质,据官方文档介绍使用Ogg Vorbis q5 codec编码,音频流大约为160kb/s。 ●P2P,P2P在这里的应用使用在线播放异常流畅,缓冲延迟的次数非常少。 ●音乐曲库丰富。几乎所有的主流欧美流行音乐都能在这里找到,而且每个艺人的专辑资料也非常全面,你甚至在这里可以找到非常多的罕见专辑

Spotify: Login using the web api not accepting redirect url

社会主义新天地 提交于 2019-12-05 13:38:38
I am trying to login to Spotify using the Web API since I don't need a session object. In my authorize method, I need to pass in the redirect url, but the way that the iOS redirect url is formatted is not accepted in a .GET request. func authorize() { // create the url let url = "https://accounts.spotify.com/authorize" // parameters let parameters = ["client_id" : kClientID, "response_type" : "code", "redirect_uri" : "spotify-discover-login://callback", "state" : kState, "scope" : kScopes] // response code var responseCode = 401 Alamofire.request(.GET, url, parameters: parameters, headers: nil

Preventing misuse of libspotify key

江枫思渺然 提交于 2019-12-05 12:14:40
The terms of use for libspotify state that the key should be stored in a secure manner. The only recommendation for storing the key that I've found is compiling your application and distributing the binary. I have a hard time seeing this as anything else than security by obscurity since the key is easily retrievable using a debugger. Is this really the approach Spotify suggests? What about if I only compile the file containing the key and distribute the rest of my application as open source? I guess the essence of my question is this: how do I avoid breaching the ToS without requiring every