Bagosep

Edit Playlist

Jun 2nd, 2021
594
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require '../vendor/autoload.php';
  2. use GuzzleHttp\Client;
  3.  
  4. $token = $_SESSION['token'];
  5.  
  6. $client = new Client([
  7.     'base_uri' => 'https://api.deezer.com',
  8. ]);
  9.  
  10. $response = $client->request('GET', 'playlist/'.$_GET['id'].'?access_token='.$token);
  11. $playlist = json_decode($response->getBody());
RAW Paste Data