PHP code example of flyskypie / cloud-catapult

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

    

flyskypie / cloud-catapult example snippets


$Catapult = new Catapult();
$FileId = $Catapult->shoot($_FILES['fileToUpload']);

OAUTH_CREDENTIALS_PATH="/the/folder/you/put/json/"
OAUTH_TOKEN_PATH="/the/folder/you/put/json/"
shell
cd example
php AuthorizationWizard.php