Latest auth tools; Non-array catching

This commit is contained in:
James Barnsley
2017-11-14 20:57:02 +13:00
parent 4c6458aafc
commit 87eace3ce0
3 changed files with 36 additions and 33 deletions

View File

@ -1,16 +1,9 @@
<?php
/**
* Spotify Authentication proxy
*
* To use:
* 1. Create a Spotify App (https://developer.spotify.com/my-applications), and paste in your credentials below
* 2. Save this script to a publicly-accessible server
* 3. Set config in mopidy.conf to point to this script
**/
// Spotify app credentials
define('CLIENT_ID','YOUR_ID_HERE');
define('CLIENT_SECRET','YOUR_SECRET_HERE');
// Create your application here: https://developer.spotify.com/my-applications
define('CLIENT_ID','YOUR_CLIENT_ID_HERE');
define('CLIENT_SECRET','YOUR_CLIENT_SECRET_HERE');
define('REDIRECT_URI','YOUR_REDIRECT_URI_HERE');
// Allow cross-domain requests
@ -177,3 +170,4 @@ function refreshToken($refresh_token){
return $response;
}