PHP code example of julien-boudry / qobuz-atys

1. Go to this page and download the library: Download julien-boudry/qobuz-atys library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

julien-boudry / qobuz-atys example snippets


use AtysQobuz\Atys ;

Atys::$AppID = '100000000'; // Optional
Atys::setAPPSecret('XXX'); // If you have one.

Atys::$CacheDirectory = '/home/julien/QobuzCache'; // Active cache functionality
Atys::setCacheLength(7200); // Two Hours

var_dump(Atys::request('album/get', ['album_id' => '3760156050089'])); // Album representation is under AtysQobuz\Entity\Album Class. Other method can return a PHP array translation from Json.

Atys::$Login = "myLogin";
Atys::setPasswordMD5(hash('md5','yourPassword'));

Atys::request("purchase/getUserPurchases");