PHP code example of yespbs / egnyte

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

    

yespbs / egnyte example snippets



$client = new \Yespbs\Egnyte\Client( 'domain', 'oauth token' );

$fileClient = new \Yespbs\Egnyte\Model\File( $client );

// OR $fileClient = new \Yespbs\Egnyte\Model\File( null, 'domain', 'oauth token' );

$response = $fileClient->upload('/Shared/Documents/test.txt', 'test file upload' );