Update README because I forgot how to develop this app.
[Marketplaylister.git] / marketplay.php
index 6ff4b85..07e1de5 100644 (file)
@@ -1,6 +1,7 @@
 <?php
-    require 'secrets.php';
-    $scopes = 'playlist-modify-private playlist-modify-public';
-    $url = 'https://accounts.spotify.com/en/authorize?response_type=code&client_id=93a6f9c0375c45d4b348157691aa24e8&scope=' . urlencode($scopes) . '&redirect_uri=' . urlencode(REDIRECT_URI) . '&state=' . $_GET['state'];
-    header('Location: ' .$url);
-    exit();
+require 'secrets.php';
+$scopes = 'playlist-modify-private playlist-modify-public';
+$url = 'https://accounts.spotify.com/en/authorize?response_type=code&client_id=93a6f9c0375c45d4b348157691aa24e8&scope=' . urlencode($scopes) . '&redirect_uri=' . urlencode(REDIRECT_URI) . '&state=' . $_GET['state'];
+header('Location: ' .$url);
+exit();
+