PHP code example of dustink66 / 115open-php-sdk

1. Go to this page and download the library: Download dustink66/115open-php-sdk 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/ */

    

dustink66 / 115open-php-sdk example snippets



pen115\Client;

$client = new Client('your_client_id');
// Device Code Auth
$authUrl = $client->auth->getDeviceCodeUrl();
// Get user info
$user = $client->user->getInfo();

// List files
$files = $client->fileManager->list();

// Offline download
$client->offline->addTask($url);
bash
composer