spotify

Spotify Clear Playlist Drag and Drop

对着背影说爱祢 提交于 2019-12-24 13:11:54
问题 When you drag/drop an Artist into my app in the sidebar, I build a temporary playlist. Every time I drag a new Artist into my app, it builds a new list after the previous, WITHOUT clearing out the old one. (Note there is some code missing from here that is probably not needed). My question: how do I clear out or remove the current built playlist THEN build a new one, every time I drag/drop an Artist into my app? I suspect it would need to be called inside getRelated()? models.application

Spotify API authentication with Python

流过昼夜 提交于 2019-12-24 13:07:59
问题 I'm trying to authenticate a user in the Spotify API, but it keeps returning me the error code "invalid_client". I'm implementing that on a Python Django solution, that's my code: headers = {'Authorization': 'Basic '+standard_b64encode(client_id)+standard_b64encode(client_secret)} r = requests.post('https://accounts.spotify.com/api/token', {'code': code, 'redirect_uri': redirect_uri, 'grant_type': grant_type, 'headers': headers}).json() Any idea why it's not working? 回答1: In spotify api docs

Spotify App API: tab pages, playlist UI refresh

丶灬走出姿态 提交于 2019-12-24 06:38:13
问题 I am building a Spotify App with four tab pages. The content of all tabs are loaded on initial load of the app. Each tab contain one or more playlists that are being populated with data from 3rd party web apis that are resolved into spotify tracks. The selected tab works fine. the playlist show up a expected. The problem is with tabs that are initially hidden but later selected. Here the playlist looks like this when selected: not fully rendered playlist Looking in the Inspector I can see

Spotify API - Retrieving Valid Access Token in Google Apps Scripts

隐身守侯 提交于 2019-12-23 19:33:55
问题 Here is the documentation for the Spotify API (I'm using the Implicit Grant Flow): https://beta.developer.spotify.com/documentation/general/guides/authorization-guide/#implicit-grant-flow I'm trying to write a script in Google Sheets. I'm focussing on the basic setup, but I cannot seem to get the access token working. SOLVED: I'm currently receiving the following error (it seems like my parameters for my fetch method aren't set properly): "error":"unsupported_grant_type","error_description":

require.js POST request to spotify web api returning “Error parsing json”

只愿长相守 提交于 2019-12-23 16:46:41
问题 According to Spotify Web API Create Playlist, once authorization is successful, a POST with the access_token and a few other parameters should create a new playlist for the user. The example CURL command in the link curl -X POST "https://api.spotify.com/v1/users/wizzler/playlists" -H "Authorization: Bearer {your access token}" -H "Content-Type: application/json" --data "{\"name\":\"A New Playlist\", \"public\":false}" This working fine for me. But when i run the following code from a nodejs

Newest Spotify update: Autohotkeys script broke

我只是一个虾纸丫 提交于 2019-12-23 10:39:34
问题 I used to use the AutoHotKey script for Spotify shortcuts (the built in shortcuts are limited and only work if the app is in focus, I usually keep it in the background at work). Anyway, it's updated a million times before with no problem.. but I downloaded the latest spotify update and it no longer works. Any idea why? Here's the script. #z::Run www.autohotkey.com SetTitleMatchMode 2 ; "CTRL + LEFT" for previous ^Left:: { DetectHiddenWindows, On ControlSend, ahk_parent, ^{Left}, ahk_class

How Can I increase the expiry time of Spotify token?

北慕城南 提交于 2019-12-23 08:53:51
问题 Please advice how can I increase token expiry time While fetching data using spotify web API "https://accounts.spotify.com/api/token" 回答1: Access tokens expire after one hour. This expiry time is set on Spotify's side and can't be changed by the client. You can refresh an access token if you're retrieving it using the Authorization Code flow. (The refresh token is practically valid forever, or until it has been manually revoked.) 回答2: As stated by Michael Thelin, the token's expiration time

Spotify login error INVALID_CLIENT: Invalid redirect URI android

浪子不回头ぞ 提交于 2019-12-23 08:43:06
问题 I am making an application which contain spotify integration, I was followed this link https://developer.spotify.com/technologies/spotify-android-sdk/tutorial/ by the reference of this link I was put "festevo://callback" as callback redirect URI when I was trying login into spotify every time I was getting same error. <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="callback" android:scheme="festevo"

Spotify login error INVALID_CLIENT: Invalid redirect URI android

我只是一个虾纸丫 提交于 2019-12-23 08:41:11
问题 I am making an application which contain spotify integration, I was followed this link https://developer.spotify.com/technologies/spotify-android-sdk/tutorial/ by the reference of this link I was put "festevo://callback" as callback redirect URI when I was trying login into spotify every time I was getting same error. <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:host="callback" android:scheme="festevo"

Trouble refreshing Spotify token iOS SDK

蓝咒 提交于 2019-12-23 03:59:27
问题 I'm confused as how I use the refresh token service. In my app there is a section with many playlists. When the user clicks on the playlist it runs this code: func checkAuth() { print("checking auth") let auth = SPTAuth.defaultInstance() //print(auth!.session.isValid()) if auth!.session == nil { print("no auth") if auth!.hasTokenRefreshService { print("refresh token if session == nil") self.renewTokenAndShowPlayer() return } else { self.performSegue(withIdentifier: "LoginControllerSegue",