spotify

Spotify API Illegal redirect_uri

半世苍凉 提交于 2020-08-24 19:34:26
问题 I'm trying to progress through the Spotify developer API tutorial but when I try to access the user login page I get this error. I've triple checked that the URI in the code matches the one on MyApplications page but it still won't work. Here's the script, var express = require('express'); // Express web server framework var request = require('request'); // "Request" library var querystring = require('querystring'); var cookieParser = require('cookie-parser'); var client_id = id; var client

Implement Log In With Spotify Popup

生来就可爱ヽ(ⅴ<●) 提交于 2020-08-24 03:51:11
问题 Hi I want to implement a Log In with Spotify feature in my website but I don't want to redirect users to a different page, I would like to just open a popup window. An example of the behavior I want is found at https://developer.spotify.com. There when you click on log in, a pop up window is opened so you can log in with spotify without any redirect. 回答1: That's how Spotify Developer website does it: Open a popup window to /api/authorize. Once the user has allowed the application, it will

How to call the Spotify API from C#

醉酒当歌 提交于 2020-08-21 06:39:48
问题 I'm trying to call the spotify API with C#. Unfortunately, I'm already stuck with getting the access token This is how I tried to get it: private static async Task<string> GetAccessToken() { SpotifyToken token = new SpotifyToken(); string postString = string.Format("grant_type=client_credentials"); byte[] byteArray = Encoding.UTF8.GetBytes(postString); string url = "https://accounts.spotify.com/api/token"; WebRequest request = WebRequest.Create(url); request.Method = "POST"; request.Headers

How to fix '“com.spotify.error.client_authentication_failed”

前提是你 提交于 2020-06-17 13:22:46
问题 I'm making an Android app witch uses the spotify remote SDK. But it gives an error when connecting to the spotify server. The code is the same as the code of the example project of Spotify included with the SDK. I changed the client id en redirect uri values to mine but it gives the authentication error. My client id and redirect uri work because I'm making the same app in swift, were everything works fine. Does anyone know how to solve this? I'm using release 0.6.2 I tried to implement the

Docker Maven Spotify plugin - Possible to switch to non-secure registry

六月ゝ 毕业季﹏ 提交于 2020-05-13 03:59:30
问题 I'm using the Spotify Maven plugin to automate the building and deploying of docker images when executing certain maven goals. However, I'm running a private unsecured registry that is accessible through the following host: server.mydomain.com:5000. However, I can't seem to stop the plugin from forcing a secure push to the repository? It uses https://server.mydomain.com:5000. Is there any way to force the plugin to not use https? Thanks. Edit: Current plugin POM configuration: <plugin>

Docker Maven Spotify plugin - Possible to switch to non-secure registry

随声附和 提交于 2020-05-13 03:58:45
问题 I'm using the Spotify Maven plugin to automate the building and deploying of docker images when executing certain maven goals. However, I'm running a private unsecured registry that is accessible through the following host: server.mydomain.com:5000. However, I can't seem to stop the plugin from forcing a secure push to the repository? It uses https://server.mydomain.com:5000. Is there any way to force the plugin to not use https? Thanks. Edit: Current plugin POM configuration: <plugin>

Docker Maven Spotify plugin - Possible to switch to non-secure registry

夙愿已清 提交于 2020-05-13 03:58:27
问题 I'm using the Spotify Maven plugin to automate the building and deploying of docker images when executing certain maven goals. However, I'm running a private unsecured registry that is accessible through the following host: server.mydomain.com:5000. However, I can't seem to stop the plugin from forcing a secure push to the repository? It uses https://server.mydomain.com:5000. Is there any way to force the plugin to not use https? Thanks. Edit: Current plugin POM configuration: <plugin>

Invalid redirect URI on spotify auth

丶灬走出姿态 提交于 2020-05-10 03:39:09
问题 I try to auth user through my app with spotify Web API but I receive this error: INVALID_CLIENT: Invalid redirect URI URL: GET https://accounts.spotify.com/authorize/?client_id=6ae90bf75bf748c8874a75d16682f0c5&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&scope=user-read-private%20user-read-email I cant see where is the problem... Can you help? 回答1: You have to add the redirect URI to the White-list in "My Applications" panel. e.g http://example.com/callback/ 回答2: app

Spotify API authorization + token key error - python3

僤鯓⒐⒋嵵緔 提交于 2020-04-18 05:35:16
问题 I'm running into this issue where with my script and I'm a bit stumped. I've been running this script with no problems for the past few weeks and now I'm getting a KeyError for the token. Here's my code: # IMPORTS import os import re import requests import json import numpy as np import pandas as pd import time from pprint import pprint as pp import datetime as dt import sys import spotipy from spotipy.oauth2 import SpotifyClientCredentials acc_path = "../../access/" sys.path.append(acc_path)

Python - Spotify API returning Error 400 “Malformed JSON”

人盡茶涼 提交于 2020-04-16 06:08:43
问题 Heyo. I'm trying to make a small application in my spare time that uses the Spotify API . I have managed to get my program to use oAuth 2 to let a user authorize my app to manipulate their Spotify, but I have run into a problem with a certain endpoint on the Spotify API. The endpoint I am having trouble with is https://api.spotify.com/v1/me/player/play (here's a link to their docs for the endpoint https://developer.spotify.com/console/put-play/). Whenever I try to make a put request to the