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.
usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;usingSystem;namespaceGroupDocs.Conversion.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);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Conversion\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";}?>
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.conversion.api.*;importcom.groupdocs.cloud.conversion.client.ApiException;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importexamples.Utils;publicclassConversion_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();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Conversion_Ruby_Storage_Exist()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsConversionCloud::StorageExistsRequest.new($myStorage)$response=$api.storage_exists($request)puts("Expected response type is StorageExist: "+($response).to_s)endend
"use strict";classConversion_Node_Storage_Exist{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_conversion_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=Conversion_Node_Storage_Exist;
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Storage_Exist:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_conversion_cloud.StorageExistsRequest(Common_Utilities.myStorage)response=api.storage_exists(request)print("Expected response type is StorageExist: "+str(response))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
packagemainimport("fmt"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcStorageExist(){response,_,err:=client.StorageApi.StorageExists(ctx,StorageName)iferr!=nil{fmt.Printf("Failed to check if storage exists: %v",err)}// Assert
if!response.Exists{fmt.Printf("Storage does not exist")}}
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.
usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;usingSystem;namespaceGroupDocs.Conversion.Cloud.Examples.CSharp{// Is Object ExistsclassObject_Exists{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newStorageApi(configuration);try{varrequest=newObjectExistsRequest("conversions/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);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Conversion\Model\Requests\ObjectExistsRequest("conversions\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";}?>
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.conversion.api.*;importcom.groupdocs.cloud.conversion.client.ApiException;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importexamples.Utils;publicclassConversion_Java_Object_Exists{publicstaticvoidmain(String[]args){StorageApiapiInstance=newStorageApi(Utils.AppSID,Utils.AppKey);try{ObjectExistsRequestrequest=newObjectExistsRequest("conversions\\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();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Conversion_Ruby_Object_Exists()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsConversionCloud::ObjectExistsRequest.new("conversions/one-page.docx",$myStorage)$response=$api.object_exists($request)puts("Expected response type is ObjectExist: "+($response).to_s)endend
"use strict";classConversion_Node_Object_Exists{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_conversion_cloud_1.ObjectExistsRequest("conversions/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=Conversion_Node_Object_Exists;
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Object_Exists:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_conversion_cloud.ObjectExistsRequest("conversions\\one-page.docx",Common_Utilities.myStorage)response=api.object_exists(request)print("Expected response type is ObjectExist: "+str(response))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
packagemainimport("fmt"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcObjectExist(){response,_,err:=client.StorageApi.StorageExists(ctx,StorageName)iferr!=nil{fmt.Printf("Failed to check if storage exists: %v",err)}// Assert
if!response.Exists{fmt.Printf("Storage does not exist")}}
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.
usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;usingSystem;namespaceGroupDocs.Conversion.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);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Conversion\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";}?>
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.conversion.api.*;importcom.groupdocs.cloud.conversion.client.ApiException;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importexamples.Utils;publicclassConversion_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();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Conversion_Ruby_Get_Disc_Usage()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsConversionCloud::GetDiscUsageRequest.new($myStorage)$response=$api.get_disc_usage($request)puts("Expected response type is DiscUsage: "+($response).to_s)endend
"use strict";classConversion_Node_Object_Exists{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_conversion_cloud_1.ObjectExistsRequest("conversions/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=Conversion_Node_Object_Exists;
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Object_Exists:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_conversion_cloud.ObjectExistsRequest("conversions\\one-page.docx",Common_Utilities.myStorage)response=api.object_exists(request)print("Expected response type is ObjectExist: "+str(response))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
packagemainimport("fmt"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcGetDiscUsage(){response,_,err:=client.StorageApi.GetDiscUsage(ctx,nil)iferr!=nil{fmt.Printf("Failed to get disk usage: %v",err)}ifresponse.TotalSize<=0{fmt.Printf("Total size is not greater than 0")}ifresponse.UsedSize<=0{fmt.Printf("Used size is not greater than 0")}}
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.
usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;usingSystem;namespaceGroupDocs.Conversion.Cloud.Examples.CSharp{// Get File VersionsclassGet_File_Versions{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newStorageApi(configuration);try{varrequest=newGetFileVersionsRequest("conversions/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);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$apiInstance=CommonUtils::GetStorageApiInstance();$request=newGroupDocs\Conversion\Model\Requests\GetFileVersionsRequest("conversions\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";}?>
packageexamples.Working_With_Storage;importcom.groupdocs.cloud.conversion.api.*;importcom.groupdocs.cloud.conversion.client.ApiException;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importexamples.Utils;publicclassConversion_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();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classWorking_With_Storagedefself.Conversion_Ruby_Get_Disc_Usage()# Getting instance of the API$api=Common_Utilities.Get_StorageApi_Instance()$request=GroupDocsConversionCloud::GetDiscUsageRequest.new($myStorage)$response=$api.get_disc_usage($request)puts("Expected response type is DiscUsage: "+($response).to_s)endend
"use strict";classConversion_Node_Get_Disc_Usage{staticRun(){// retrieve supported file-formats
varrequest=newgroupdocs_conversion_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=Conversion_Node_Get_Disc_Usage;
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Get_Disc_Usage:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_StorageApi_Instance()try:request=groupdocs_conversion_cloud.GetDiscUsageRequest(Common_Utilities.myStorage)response=api.get_disc_usage(request)print("Expected response type is DiscUsage: "+str(response))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception while calling API: {0}".format(e.message))
packagemainimport("fmt"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcGetFileVersions(){testFile:="WordProcessing/one-page.docx"response,_,err:=client.StorageApi.GetFileVersions(ctx,testFile,nil)iferr!=nil{fmt.Printf("Failed to get file versions: %v",err)}iflen(response.Value)==0{fmt.Printf("Expected file versions, found none")}}
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.