spotify

Can't get new token in Spotipy

倖福魔咒の 提交于 2021-02-11 12:41:56
问题 About a month ago I was playing with the library and all of this worked as planned. Now I wanted to play with it again but I get the following error when trying to request the top tracks: spotipy.exceptions.SpotifyException: http status: 400, code:-1 - Couldn't refresh token: code:400 reason:Bad Request, reason: {'Authorization': 'Basic Y2Y2NGFiNDY2ZDI0NDIyMzgzMjRhMjI0NTQxZDkzOGQ6MmJmMTQ5MTgxYmIxNDczZDg5MTAwOTEwYzkzOWRkZjU='} I tried revoking the permission on my account in the hope it would

SPTSessionManager does not initialize or fail

别说谁变了你拦得住时间么 提交于 2021-02-11 01:11:06
问题 When I try to call sessionManager.initialize() neither func sessionManager(manager: SPTSessionManager, didFailWith error: Error) nor func sessionManager(manager: SPTSessionManager, didInitiate session: SPTSession) are called. I have a nodeJS server running on AWS for token access and refresh and I have also tried running a local Ruby server to get the token. No matter what, calling initialize() does nothing. It does fail or succeed and nothing is output to console. I have tried running the

Is it possible to get current playing song data on Android? If yes How?

左心房为你撑大大i 提交于 2021-02-08 11:34:34
问题 What I want to do is to get current playing song data. Song might be on spotify or any other music player. Actually I want to get data which transferred to phone hardware. Is it possible ? Is there a provided way to do it ? I've tried, Broadcast Receiver with these filter but onReceived did not invoked. (tested with spotify android app) IntentFilter iF = new IntentFilter(); iF.addCategory("ComponentInfo"); iF.addCategory("com.spotify.mobile.android.service.SpotifyIntentService"); iF

Is it possible to get current playing song data on Android? If yes How?

自古美人都是妖i 提交于 2021-02-08 11:33:09
问题 What I want to do is to get current playing song data. Song might be on spotify or any other music player. Actually I want to get data which transferred to phone hardware. Is it possible ? Is there a provided way to do it ? I've tried, Broadcast Receiver with these filter but onReceived did not invoked. (tested with spotify android app) IntentFilter iF = new IntentFilter(); iF.addCategory("ComponentInfo"); iF.addCategory("com.spotify.mobile.android.service.SpotifyIntentService"); iF

How to get Spotify current playing song in Python (Windows)?

只谈情不闲聊 提交于 2021-02-07 10:20:55
问题 I want to show the current playing song in Spotify on a 16x2 LCD. I was thinking of connecting the LCD with my Arduino and then making a Python script that sends the current playing song of Spotify to the Arduino. To get to the point, I'm looking for a way to get Spotify's current playing song in Python. (I'm using Windows 8.) I found some ways like dbus, but they were either for Linux or for Mac. Thanks in advance! (And sorry for bad English grammar.) 回答1: I encountered the same issue, so I

Using spotify-web-api-node to generate an authentication token

为君一笑 提交于 2021-02-07 08:46:26
问题 I am new to using nodejs and am working on a project where I can make a custom playlist by adding one song at a time via a search. I've been able to get the code to do the searching and grabbing the proper ids done, but when trying to add to the playlist, I'm getting an error about the scope being wrong. Long story short, I was doing the wrong type of authentication. So I read up on the spotify-web-api-node documents, but I'm getting lost between generating the authorization url and then

Flutter: Oauth2 - Problems with redirect uri

风流意气都作罢 提交于 2021-02-07 04:39:10
问题 I want to set up the oAuth authentication of the Spotify API in my Flutter app. I chose the flutter_web_auth 0.1.1 package. So far, I have managed that the user can log in to Spotify. After logging in, the user should be redirected back to my app. That does not work. Spotify always redirects the user to another website and not back to the app. How do I close the WebView after the user logging in and redirect the user to my app? import 'package:flutter/material.dart'; import 'package:flutter

Having trouble using cached tokens with Spotipy for Spotify?

好久不见. 提交于 2021-02-07 04:18:08
问题 I'm trying to use Spotipy to access a user's Spotify library but am running into a bit of trouble. For background, I'm using Flask, SQLAlchemy, and Flask-Login. I looked off of this tutorial on github to get started, but this one doesn't quite work for me because if you use a cache, all users can access the playlist of the user whose token is cached, and since there is a cached token, any user after the first user can't login to Spotify. Here is some initial setup: sp_oauth = oauth2

Having trouble using cached tokens with Spotipy for Spotify?

拥有回忆 提交于 2021-02-07 04:17:11
问题 I'm trying to use Spotipy to access a user's Spotify library but am running into a bit of trouble. For background, I'm using Flask, SQLAlchemy, and Flask-Login. I looked off of this tutorial on github to get started, but this one doesn't quite work for me because if you use a cache, all users can access the playlist of the user whose token is cached, and since there is a cached token, any user after the first user can't login to Spotify. Here is some initial setup: sp_oauth = oauth2

Can't get any cookies with C# HttpClient

牧云@^-^@ 提交于 2021-02-04 19:58:11
问题 I'm trying to get cookies on the Spotify login page with C# and the HttpClient class. However, the CookieContainer is always empty when I know cookies are being set. I'm not sending any headers, but it should still give me the cookie(s) because when I send a GET request without any headers with python (requests module) I get the csrf token. Here's my code: using System; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System