Esempio n. 1
0
     throw new Exception('Please enter FILE ID');
 } else {
     F3::set('userId', $clientID);
     F3::set('privateKey', $privateKey);
     //###Create Signer, ApiClient and Storage Api objects
     //Create signer object
     $signer = new GroupDocsRequestSigner($privateKey);
     //Create apiClient object
     $apiClient = new APIClient($signer);
     //Create Doc Api object
     $docApi = new DocApi($apiClient);
     //Create Storage Api object
     $storageApi = new StorageApi($apiClient);
     //Create AsyncApi object
     $asyncApi = new AsyncApi($apiClient);
     $mergApi = new MergeApi($apiClient);
     //Set url to choose whot server to use
     if ($basePath == "") {
         //If base base is empty seting base path to prod server
         $basePath = 'https://api.groupdocs.com/v2.0';
     }
     //Set base path
     $docApi->setBasePath($basePath);
     $storageApi->setBasePath($basePath);
     $asyncApi->setBasePath($basePath);
     $mergApi->setBasePath($basePath);
     //Get entered by user data
     $url = F3::get('POST["url"]');
     $file = $_FILES['file'];
     $fileId = F3::get('POST["fileId"]');
     //Check if user choose upload file from URL
Esempio n. 2
0
     }
 }
 F3::set('userId', $clientId);
 F3::set('privateKey', $privateKey);
 //###Create Signer, ApiClient and Storage Api objects
 //Create signer object
 $signer = new GroupDocsRequestSigner($privateKey);
 //Create apiClient object
 $apiClient = new APIClient($signer);
 //Create Doc Api object
 $docApi = new DocApi($apiClient);
 //Create Storage Api object
 $apiStorage = new StorageApi($apiClient);
 //Create AsyncApi object
 $api = new AsyncApi($apiClient);
 $mergApi = new MergeApi($apiClient);
 $signatureApi = new SignatureApi($apiClient);
 //Set url to choose whot server to use
 if ($basePath == "") {
     //If base base is empty seting base path to prod server
     $basePath = 'https://api.groupdocs.com/v2.0';
 }
 //Set base path
 $docApi->setBasePath($basePath);
 $apiStorage->setBasePath($basePath);
 $api->setBasePath($basePath);
 $mergApi->setBasePath($basePath);
 $signatureApi->setBasePath($basePath);
 //Get entered by user data
 $name = F3::get('POST["name"]');
 $lastName = "lastName";
Esempio n. 3
0
     throw new Exception('Please enter FILE ID');
 } else {
     F3::set('userId', $clientId);
     F3::set('privateKey', $privateKey);
     //###Create Signer, ApiClient and Storage Api objects
     //Create signer object
     $signer = new GroupDocsRequestSigner($privateKey);
     //Create apiClient object
     $apiClient = new APIClient($signer);
     //Create Doc Api object
     $docApi = new DocApi($apiClient);
     //Create Storage Api object
     $storageApi = new StorageApi($apiClient);
     //Create AsyncApi object
     $api = new AsyncApi($apiClient);
     $mergApi = new MergeApi($apiClient);
     //Set url to choose whot server to use
     if ($basePath == "") {
         //If base base is empty seting base path to prod server
         $basePath = 'https://api.groupdocs.com/v2.0';
     }
     //Set base path
     $docApi->setBasePath($basePath);
     $storageApi->setBasePath($basePath);
     $api->setBasePath($basePath);
     $mergApi->setBasePath($basePath);
     //Get entered by user data
     $sex = F3::get('POST["sex"]');
     $age = F3::get('POST["age"]');
     $sunrise = F3::get('POST["sunrise"]');
     $name = F3::get('POST["name"]');