spotify

Can't get playlist's tracks with kaaes Spotify web api

大憨熊 提交于 2019-12-23 03:49:07
问题 I'm a very noob user, I'm trying to play some tracks from Spotify in my Android app. Currently I'm using the kaaes API: https://github.com/kaaes/spotify-web-api-android and I'm struggling to retrieve the tracks from a very specific Playlist and a very specific userId. It seems that I'm not able to do it, the only examples I found are old and don't help me. Here's what I tried: Accessing list of playlists from Pager object SpotifyApi api = new SpotifyApi(); SpotifyService spotify = api

problem playing songs via the spotify web api and javascript

巧了我就是萌 提交于 2019-12-22 17:55:07
问题 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

Spotify: Login using the web api not accepting redirect url

时间秒杀一切 提交于 2019-12-22 08:05:23
问题 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] //

How to properly handle token refresh with Spotify SDK and Swift 3. Error Code=3840

為{幸葍}努か 提交于 2019-12-22 04:42:33
问题 tl;dr I'm receiving: JSON text did not start with array or object and option to allow fragments not set. if i'm trying to receive a token and No refresh token available in the session! if I'm trying to renew a token. I'm trying to setup the token refresh for the Objective-C Spotify iOS SDK beta-25 in Swift 3. I'm using a Heroku Server and the Ruby script provided by Spotify, changed to my credentials. require 'sinatra' require 'net/http' require 'net/https' require 'base64' require 'encrypted

'UTF8' is not a supported encoding name

丶灬走出姿态 提交于 2019-12-22 03:23:24
问题 So I'm just playing around with Spotify's Web API and I'm trying to access my top played tracks. Although I've encountered a problem I've been trying to solve for a couple of hours now but I can't find an answer. When I try to deserialize my response, I get the follwing error: 'UTF8' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. Parameter name: name The character set provided in ContentType is

How to play a spotify music stream

泪湿孤枕 提交于 2019-12-21 21:30:59
问题 First of all, i am new to audio-programming, so bear with me. I am trying to play spotify music with NAudio or BASS.Net or any other .net audio-library. As far as i known, libspotify delivers music as raw PCM data. what is the sample rate of spotify stream (libspotify)? From the spotify docs: Samples are delivered as integers, see sp_audioformat. One frame consists of the same number of samples as there are channels. I.e. interleaving is on the sample level. When i try to play a song, spotify

How to refresh Access Token on Spotify SDK for Android?

匆匆过客 提交于 2019-12-21 13:05:09
问题 I'm making an Android's app using Spotify SDK and Spotify Web Api Android from kaaes. What's the best way to refresh my access token? Since i need to keep the user logged. I don't want that my app ask for log in everytime the users open the app. How can I handle this ? retrofit.RetrofitError: 401 Unauthorized Login to Spotify failed because of invalid credentials Thanks for your time and help! Regards. 回答1: You need to use the Authorization Code flow from the Spotify Web API to obtain a

Spotify session management

梦想的初衷 提交于 2019-12-21 09:30:12
问题 I have a spotify login in my app and try to made an autologin: Login function func getSpotifyToken(fromController controller: UIViewController, success: (spotifyToken: String?) -> Void, failure: (error: NSError?) -> Void) { loginSuccessBlock = success loginFailureBlock = failure SPTAuth.defaultInstance().clientID = SpotifyClientID SPTAuth.defaultInstance().redirectURL = NSURL(string: SpotifyRedirectURI) SPTAuth.defaultInstance().requestedScopes = [SPTAuthStreamingScope,

Mapping musicbrainz URIs into Spotify URIs

旧街凉风 提交于 2019-12-21 07:26:10
问题 Does anybody know how can I find Spotify's URI for a given artist/album's musicbrainz URI? Spotify's web-api doesn't solve my problem cause I wanna map all the musicbrainz artists and albums and it's quite slow. 回答1: You should be able to use the Echo Nest Rosetta Stone Project to map Spotify and MusicBrainz artist ids: http://developer.echonest.com/docs/v4 来源: https://stackoverflow.com/questions/10462343/mapping-musicbrainz-uris-into-spotify-uris

How to change BPM value of Spotify Song Swift

末鹿安然 提交于 2019-12-21 04:17:20
问题 I am trying to build an application that plays Spotify songs. I am really confused about how to change BPM(Beats Per Minute,) value of Spotify songs. First Step: Login through Spotify. Second Step: Get Current user all album. Third Step : get album track. Last Step: play track. I have done All step with Spotify Delegates. but I want to change the BPM value of the track. Can someone please explain to me how to change the BPM value? 来源: https://stackoverflow.com/questions/56269879/how-to-change