PHP code example of sioweb / admiralcloud-client

1. Go to this page and download the library: Download sioweb/admiralcloud-client 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/ */

    

sioweb / admiralcloud-client example snippets




use Sioweb\AdmiralcloudClient\Api\Request;

iaContainerId & mediaId
// die(json_encode($Request->media([
//     'mediaContainerId' => 9999999,
//     'mediaId' => 9999999
// ])));


// // Get Media by mediaContainerId only
// die(json_encode($Request->media([
//     'mediaContainerId' => 9999999
// ])));


// Get Mediacontainer by mediaContainerId (not id!)
// die(json_encode($Request->mediacontainer([
//     'mediaContainerId' => 9999999
// ])));


// // Get 250 Media IDs from Mediacontainer
// die(json_encode($Request->mediacontainerBatch()));


// // Get 10 Media IDs from Mediacontainer
// die(json_encode($Request->mediacontainerBatch([
//     'limit' => 10
// ])));


// // how to search by meta fields
// die(json_encode($Request->search([
//     'searchTerm' => 'lorem ipsum',
//     'field' => 'meta_yourOwnMetaDataField'
// ])));



$Request = new Request('/var/www/html/yourproject/');