LittleDemon WebShell


Linux hosting5.siteguarding.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
Path : /home/devsafetybis/spotify.dev.safetybis.com/
File Upload :
Command :
Current File : /home/devsafetybis/spotify.dev.safetybis.com/callback.php

<?php
require 'autoload.php';

session_start();

$session = new SpotifyWebAPI\Session(
    '6933df334c3c4b59b8103c00cd21e331',
    '8747141b901f4fd8b85db3926462d198',
    'https://spotify.dev.safetybis.com/callback.php'
);

// Request a access token using the code from Spotify
$session->requestAccessToken($_GET['code']);

$accessToken = $session->getAccessToken();
$refreshToken = $session->getRefreshToken();

// Store the access and refresh tokens somewhere. In a session for example

if (!isset($_SESSION['accessToken'])) {
  $_SESSION['accessToken'] = $accessToken;
} 

// Send the user along and fetch some data!
header('Location: app.php');
die();

LittleDemon - FACEBOOK
[ KELUAR ]