Creating an account is very simple. Go to Dashboard to create a free account. We’re using Single Sign On across our websites, therefore, if you already have an account with our services, you can use it to also acccess the Dashboard.
Create an API client app
Before you can make any requests to GroupDocs Cloud API you need to get a Client Id and a Client Secret.
This will will be used to invoke GroupDocs Cloud API. You can get it by creating a new Application.
Install the SDK of your choice
GroupDocs Cloud SDK is written in different languages, all you need to get started is adding our SDK to your existing project.
Make an API request from the SDK of your choice
Use the the Client Id and the Client Secret from the API app client you created in step one and replace it in the corresponding code. Below is an example demonstrating using the Formats API to get all supported file formats in GroupDocs.Conversion Cloud.
Note
The GitHub repository for GroupDocs.Conversion Cloud has a complete set of examples, demonstrating our API capabilities.
usingSystem;usingGroupDocs.Conversion.Cloud.Sdk.Api;usingGroupDocs.Conversion.Cloud.Sdk.Client;usingGroupDocs.Conversion.Cloud.Sdk.Model.Requests;namespaceGroupDocs.Conversion.Cloud.Examples.CSharp{// Get All Supported FormatsclassGet_All_Supported_Formats{publicstaticvoidRun(){varconfiguration=newConfiguration(Common.MyAppSid,Common.MyAppKey);varapiInstance=newInfoApi(configuration);try{// Get supported file formatsvarresponse=apiInstance.GetSupportedConversionTypes(newGetSupportedConversionTypesRequest());foreach(varentryinresponse){foreach(varformatsinentry.TargetFormats){Console.WriteLine(string.Format("{0} TO {1}",entry.SourceFormat,string.Join(",",formats)));}}}catch(Exceptione){Console.WriteLine("Exception while calling InfoApi: "+e.Message);}}}}
<?phpinclude(dirname(__DIR__).'\CommonUtils.php');try{$infoApi=CommonUtils::GetInfoApiInstance();$request=newGroupDocs\Conversion\Model\Requests\GetSupportedConversionTypesRequest();$response=$infoApi->getSupportedConversionTypes($request);echo'<b>Supported file formats<br /></b>';foreach($responseas$key=>$format){echo$format->getSourceFormat(),"<br />";}}catch(Exception$e){echo"Something went wrong: ",$e->getMessage(),"\n";}
packageexamples.Supported_File_Formats;importcom.groupdocs.cloud.conversion.client.*;importcom.groupdocs.cloud.conversion.model.*;importcom.groupdocs.cloud.conversion.model.requests.*;importjava.util.List;importcom.groupdocs.cloud.conversion.api.*;importexamples.Utils;publicclassConversion_Java_Get_Supported_Formats{publicstaticvoidmain(String[]args){InfoApiapiInstance=newInfoApi(Utils.AppSID,Utils.AppKey);try{GetSupportedConversionTypesRequestrequest=newGetSupportedConversionTypesRequest();List<SupportedFormat>response=apiInstance.getSupportedConversionTypes(request);for(SupportedFormatentry:response){for(Stringformats:entry.getTargetFormats()){System.out.println(entry.getSourceFormat()+" TO "+formats);}}}catch(ApiExceptione){System.err.println("Exception while calling InfoApi:");e.printStackTrace();}}}
# Load the gemrequire'groupdocs_conversion_cloud'require'common_utilities/Utils.rb'classFile_Formatsdefself.Conversion_Ruby_Get_All_Supported_Formats()# Getting instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()$request=GroupDocsConversionCloud::GetSupportedConversionTypesRequest.new()# Retrieve supported file-formats$response=api.get_supported_conversion_types($request)# Print out supported file-formatsputs("Supported file-formats:")$response.eachdo|format|puts("#{format.source_format} to [#{format.target_formats.join(', ')}]")endendend
# Import modulesimportgroupdocs_conversion_cloudfromCommon_Utilities.UtilsimportCommon_UtilitiesclassConversion_Python_Get_All_Supported_Formats:@classmethoddefRun(self):# Create instance of the APIapi=Common_Utilities.Get_InfoApi_Instance()try:# Retrieve supported conversion typesrequest=groupdocs_conversion_cloud.GetSupportedConversionTypesRequest()response=api.get_supported_conversion_types(request)# Print out supported conversion typesprint("Supported conversion types:")forfileformatinresponse:print('{0} to [{1}]'.format(fileformat.source_format,', '.join(fileformat.target_formats)))exceptgroupdocs_conversion_cloud.ApiExceptionase:print("Exception when calling get_supported_conversion_types: {0}".format(e.message))
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples
packageinfoimport("fmt""github.com/antihax/optional"conversion"github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcGetSupportedConversions(){opts:=&conversion.InfoApiGetSupportedConversionTypesOpts{Format:optional.NewString("docx"),}response,_,err:=config.Client.InfoApi.GetSupportedConversionTypes(config.Ctx,opts)iferr!=nil{fmt.Printf("GetSupportedConversions error: %v\n",err)return}fmt.Printf("response.length: %v\n",len(response))}
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.