Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the Storage existence calls and lets you use GroupDocs Cloud features in a native way for your preferred language.
usingSystem;usingGroupDocs.Comparison.Cloud.Sdk.Api;usingGroupDocs.Comparison.Cloud.Sdk.Client;usingGroupDocs.Comparison.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Comparison.Cloud.Examples.CSharp{// Is Storage ExistclassStorage_Exist{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newStorageApi(configuration);try{varrequest=newStorageExistsRequest(Common.MyStorage);varresponse=apiInstance.StorageExists(request);Console.WriteLine("Expected response type is StorageExist: "+response.Exists.Value.ToString());}catch(Exceptione){Console.WriteLine("Exception while calling StorageApi: "+e.Message);}}}}
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.comparison.api.*;importcom.groupdocs.cloud.comparison.client.ApiException;importcom.groupdocs.cloud.comparison.model.*;importcom.groupdocs.cloud.comparison.model.requests.*;importexamples.Utils;publicclassComparison_Java_Storage_Exist{publicstaticvoidmain(String[]args){StorageApiapiInstance=newStorageApi(Utils.AppSID,Utils.AppKey);try{StorageExistsRequestrequest=newStorageExistsRequest(Utils.MYStorage);StorageExistresponse=apiInstance.storageExists(request);System.out.println("Expected response type is StorageExist: "+response.getExists());}catch(ApiExceptione){System.err.println("Exception while calling StorageApi:");e.printStackTrace();}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Comparison\Model\Requests\StorageExistsRequest(CommonUtils::$MyStorage);$response=$apiInstance->storageExists($request);echo"Expected response type is StorageExist: ",$response;}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}?>
"use strict";classComparison_Node_Storage_Exist{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_comparison_cloud_1.StorageExistsRequest(myStorage);storageApi.storageExists(request).then(function(response){console.log("Expected response type is StorageExist: "+response.exists);}).catch(function(error){console.log("Error: "+error.message);});}}module.exports=Comparison_Node_Storage_Exist;
# Import modulesimportgroupdocs_comparison_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassComparison_Python_Storage_Exist:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_comparison_cloud.StorageExistsRequest(Common_Utilities.myStorage)response=api.storage_exists(request)print("Expected response type is StorageExist: "+str(response))exceptgroupdocs_comparison_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
# Load the gemrequire'groupdocs_comparison_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Comparison_Ruby_Storage_Exist()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsComparisonCloud::StorageExistsRequest.new($myStorage)$response=$api.storage_exists($request)puts("Expected response type is StorageExist: "+($response).to_s)endend
// Create config and API instances
Configurationconfig=newConfiguration('YOUR_API_KEY','YOUR_API_SECRET');// Replace with your credentials
StorageApistorageApi=newStorageApi(config);try{// Prepare the storage exists request
StorageExistsRequeststorageExistsRequest=newStorageExistsRequest('MyStorageName');// Replace 'MyStorageName' with your storage name
// Check if the storage exists
StorageExistresponse=storageApi.storageExists(storageExistsRequest);// Log the response
System.debug('Expected response type is StorageExist: '+response.Exists);}catch(Exceptione){System.debug('Exception while calling StorageApi: '+e.getMessage());}
Required. Can be passed as query string parameter or as part of the URL
|storageName|Name of the storage. If not set, then default storage used
|versionId|File version id
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the Storage Object existence calls and lets you use GroupDocs Cloud features in a native way for your preferred language.
usingSystem;usingGroupDocs.Comparison.Cloud.Sdk.Api;usingGroupDocs.Comparison.Cloud.Sdk.Client;usingGroupDocs.Comparison.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Comparison.Cloud.Examples.CSharp{// Is Object ExistsclassObject_Exists{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newStorageApi(configuration);try{varrequest=newObjectExistsRequest("Comparisondocs/one-page.docx",Common.MyStorage);varresponse=apiInstance.ObjectExists(request);Console.WriteLine("Expected response type is ObjectExist: "+response.Exists.Value.ToString());}catch(Exceptione){Console.WriteLine("Exception while calling StorageApi: "+e.Message);}}}}
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.comparison.api.*;importcom.groupdocs.cloud.comparison.client.ApiException;importcom.groupdocs.cloud.comparison.model.*;importcom.groupdocs.cloud.comparison.model.requests.*;importexamples.Utils;publicclassComparison_Java_Object_Exists{publicstaticvoidmain(String[]args){StorageApiapiInstance=newStorageApi(Utils.AppSID,Utils.AppKey);try{ObjectExistsRequestrequest=newObjectExistsRequest("Comparisondocs\\one-page.docx",Utils.MYStorage,null);ObjectExistresponse=apiInstance.objectExists(request);System.out.println("Expected response type is ObjectExist: "+response.getExists());}catch(ApiExceptione){System.err.println("Exception while calling StorageApi:");e.printStackTrace();}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Comparison\Model\Requests\ObjectExistsRequest("comparisondocs\one-page.docx",CommonUtils::$MyStorage);$response=$apiInstance->objectExists($request);echo"Expected response type is ObjectExist: ",$response;}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}?>
"use strict";classComparison_Node_Object_Exists{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_comparison_cloud_1.ObjectExistsRequest("Comparisondocs/one-page.docx",myStorage);storageApi.objectExists(request).then(function(response){console.log("Expected response type is ObjectExist: "+response.exists);}).catch(function(error){console.log("Error: "+error.message);});}}module.exports=Comparison_Node_Object_Exists;
# Import modulesimportgroupdocs_comparison_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassComparison_Python_Object_Exists:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_comparison_cloud.ObjectExistsRequest("comparisondocs\\one-page.docx",Common_Utilities.myStorage)response=api.object_exists(request)print("Expected response type is ObjectExist: "+str(response))exceptgroupdocs_comparison_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
# Load the gemrequire'groupdocs_comparison_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Comparison_Ruby_Object_Exists()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsComparisonCloud::ObjectExistsRequest.new("comparisondocs/one-page.docx",$myStorage)$response=$api.object_exists($request)puts("Expected response type is ObjectExist: "+($response).to_s)endend
// Create config and API instances
Configurationconfig=newConfiguration('YOUR_API_KEY','YOUR_API_SECRET');// Replace with your credentials
StorageApistorageApi=newStorageApi(config);try{// Prepare the object exists request
ObjectExistsRequestobjectExistsRequest=newObjectExistsRequest('Comparisondocs/one-page.docx',null);// Check if the object exists
ObjectExistresponse=storageApi.objectExists(objectExistsRequest);// Log the response
System.debug('Expected response type is ObjectExist: '+response.Exists);}catch(Exceptione){System.debug('Exception while calling StorageApi: '+e.getMessage());}
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the storage space usage API calls and lets you use GroupDocs Cloud features in a native way for your preferred language.
usingSystem;usingGroupDocs.Comparison.Cloud.Sdk.Api;usingGroupDocs.Comparison.Cloud.Sdk.Client;usingGroupDocs.Comparison.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Comparison.Cloud.Examples.CSharp{// Get Get Disc UsageclassGet_Disc_Usage{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newStorageApi(configuration);try{varrequest=newGetDiscUsageRequest(Common.MyStorage);varresponse=apiInstance.GetDiscUsage(request);Console.WriteLine("Expected response type is DiscUsage: "+response.UsedSize.ToString());}catch(Exceptione){Console.WriteLine("Exception while calling StorageApi: "+e.Message);}}}}
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.comparison.api.*;importcom.groupdocs.cloud.comparison.client.ApiException;importcom.groupdocs.cloud.comparison.model.*;importcom.groupdocs.cloud.comparison.model.requests.*;importexamples.Utils;publicclassComparison_Java_Get_Disc_Usage{publicstaticvoidmain(String[]args){StorageApiapiInstance=newStorageApi(Utils.AppSID,Utils.AppKey);try{GetDiscUsageRequestrequest=newGetDiscUsageRequest(Utils.MYStorage);DiscUsageresponse=apiInstance.getDiscUsage(request);System.out.println("Expected response type is DiscUsage: "+response.getUsedSize());}catch(ApiExceptione){System.err.println("Exception while calling StorageApi:");e.printStackTrace();}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Comparison\Model\Requests\GetDiscUsageRequest(CommonUtils::$MyStorage);$response=$apiInstance->getDiscUsage($request);echo"Expected response type is DiscUsage: ",$response;}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}?>
"use strict";classComparison_Node_Get_Disc_Usage{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_comparison_cloud_1.GetDiscUsageRequest(myStorage);storageApi.getDiscUsage(request).then(function(response){console.log("Expected response type is DiscUsage: "+response.usedSize);}).catch(function(error){console.log("Error: "+error.message);});}}module.exports=Comparison_Node_Get_Disc_Usage;
# Import modulesimportgroupdocs_comparison_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassComparison_Python_Get_Disc_Usage:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_comparison_cloud.GetDiscUsageRequest(Common_Utilities.myStorage)response=api.get_disc_usage(request)print("Expected response type is DiscUsage: "+str(response))exceptgroupdocs_comparison_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
# Load the gemrequire'groupdocs_comparison_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Comparison_Ruby_Get_Disc_Usage()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsComparisonCloud::GetDiscUsageRequest.new($myStorage)$response=$api.get_disc_usage($request)puts("Expected response type is DiscUsage: "+($response).to_s)endend
// Create config and API instances
Configurationconfig=newConfiguration('YOUR_API_KEY','YOUR_API_SECRET');// Replace with your credentials
StorageApistorageApi=newStorageApi(config);try{// Prepare the disk usage request
GetDiscUsageRequestgetDiscUsageRequest=newGetDiscUsageRequest(null);// Retrieve the disk usage
DiscUsageresponse=storageApi.getDiscUsage(getDiscUsageRequest);// Log the used size
System.debug('Expected response type is DiscUsage: '+response.UsedSize);}catch(Exceptione){System.debug('Exception while calling StorageApi: '+e.getMessage());}
Storage File Versions API
This API intended for getting the list of file versions, stored in the GroupDocs Cloud Storage
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the Storage File Versions API calls and lets you use GroupDocs Cloud features in a native way for your preferred language.
usingSystem;usingGroupDocs.Comparison.Cloud.Sdk.Api;usingGroupDocs.Comparison.Cloud.Sdk.Client;usingGroupDocs.Comparison.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Comparison.Cloud.Examples.CSharp{// Get File VersionsclassGet_File_Versions{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newStorageApi(configuration);try{varrequest=newGetFileVersionsRequest("one-page.docx",Common.MyStorage);varresponse=apiInstance.GetFileVersions(request);Console.WriteLine("Expected response type is FileVersions: "+response.Value.Count.ToString());}catch(Exceptione){Console.WriteLine("Exception while calling StorageApi: "+e.Message);}}}}
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.comparison.api.*;importcom.groupdocs.cloud.comparison.client.ApiException;importcom.groupdocs.cloud.comparison.model.*;importcom.groupdocs.cloud.comparison.model.requests.*;importexamples.Utils;publicclassComparison_Java_Get_File_Versions{publicstaticvoidmain(String[]args){StorageApiapiInstance=newStorageApi(Utils.AppSID,Utils.AppKey);try{GetFileVersionsRequestrequest=newGetFileVersionsRequest("Comparisondocs\\one-page.docx",Utils.MYStorage);FileVersionsresponse=apiInstance.getFileVersions(request);System.out.println("Expected response type is FileVersions: "+response.getValue().size());}catch(ApiExceptione){System.err.println("Exception while calling StorageApi:");e.printStackTrace();}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Comparison\Model\Requests\GetFileVersionsRequest("comparisondocs\one-page.docx",CommonUtils::$MyStorage);$response=$apiInstance->getFileVersions($request);echo"Expected response type is FileVersions: ",$response;}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}?>
"use strict";classComparison_Node_Get_File_Versions{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_comparison_cloud_1.GetFileVersionsRequest("Comparisondocs/one-page.docx",myStorage);storageApi.getFileVersions(request).then(function(response){console.log("Expected response type is FileVersions: "+response.value.length);}).catch(function(error){console.log("Error: "+error.message);});}}module.exports=Comparison_Node_Get_File_Versions;
# Import modulesimportgroupdocs_comparison_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassComparison_Python_Get_File_Versions:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_comparison_cloud.GetFileVersionsRequest("comparisondocs\\one-page.docx",Common_Utilities.myStorage)response=api.get_file_versions(request)print("Expected response type is FileVersions: "+str(response))exceptgroupdocs_comparison_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
# Load the gemrequire'groupdocs_comparison_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Comparison_Ruby_Get_File_Versions()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsComparisonCloud::GetFileVersionsRequest.new("comparisondocs/one-page.docx",$myStorage)$response=$api.get_file_versions($request)puts("Expected response type is FileVersions: "+($response).to_s)endend
// Create config and API instances
Configurationconfig=newConfiguration('YOUR_API_KEY','YOUR_API_SECRET');// Replace with your credentials
StorageApistorageApi=newStorageApi(config);try{// Prepare the file versions request
GetFileVersionsRequestgetFileVersionsRequest=newGetFileVersionsRequest('one-page.docx',null);// Retrieve the file versions
FileVersionsresponse=storageApi.getFileVersions(getFileVersionsRequest);// Log the count of file versions
System.debug('Expected response type is FileVersions: '+response.Value.size());}catch(Exceptione){System.debug('Exception while calling StorageApi: '+e.getMessage());}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.