PHP code example of akbaraditamasp / cloudpro-php

1. Go to this page and download the library: Download akbaraditamasp/cloudpro-php 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/ */

    

akbaraditamasp / cloudpro-php example snippets


$response = CloudPRO::begin()->useAppAccess("YOUR ACCESS KEY")->storeBox("Box Name");

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->storeFolder("FOLDER NAME", $options);

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->storeFile("FILE NAME", "PATH", $options);

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->showNode("NODE KEY");

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->renameNode("NODE KEY","NEW NAME");

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->moveNode("NODE KEY","PARENT KEY");

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->copyNode("NODE KEY","PARENT KEY");

$response = CloudPRO::begin()->useBoxToken("BOX TOKEN")->deleteNode("NODE KEY");
bash
composer