Adding comments; Fixed #185

This commit is contained in:
James Barnsley
2017-10-02 08:38:33 +13:00
parent 541bafaa6c
commit 4948570a47
4 changed files with 26 additions and 29 deletions

View File

@ -1,10 +1,18 @@
<?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
// Create your application here: https://developer.spotify.com/my-applications
define('CLIENT_ID','YOUR_ID_HERE');
define('CLIENT_SECRET','YOUR_SECRET_HERE');
define('REDIRECT_URI','YOUR_REDIRECT_URI_HERE (to this file)');
define('REDIRECT_URI','YOUR_REDIRECT_URI_HERE');
// Allow cross-domain requests
header("Access-Control-Allow-Origin: *");