.NET library for communicating with the GroupDocs.Conversion Cloud API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget
GroupDocs.Conversion.Cloud.Examples
GroupDocs.Conversion.Cloud.Sdk.Test
GroupDocs.Conversion.Cloud.Sdk
.gitignore
GroupDocs.Conversion.Cloud.Sdk.sln
LICENSE
README.md
Settings.StyleCop

README.md

GroupDocs.Conversion Cloud SDK for .NET

This repository contains GroupDocs.Conversion Cloud SDK for .NET source code. This SDK allows you to work with GroupDocs.Conversion Cloud REST APIs in your .NET applications.

How to use the SDK?

The complete source code is available in this repository folder, you can either directly use it in your project via NuGet package manager. For more details, please visit our documentation website.

Dependencies

NOTE: The DLLs included in the package may not be up to date. We recommended using NuGet to obtain the latest version of the packages:

Install-Package Newtonsoft.Json
Install-Package StyleCop.MSBuild

Getting Started

using System;
using System.Diagnostics;
using GroupDocs.Conversion.Cloud.Sdk;
using GroupDocs.Conversion.Cloud.Sdk.Api;
using GroupDocs.Conversion.Cloud.Sdk.Model.Requests;

namespace Example
{
    public class Example
    {
        public void Main()
        {
            //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud/ (free registration is required).
            var configuration = new Configuration
            {
                AppSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                AppKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            };

            var apiInstance = new ConversionApi(configuration);

            try
            {
                var request = new GetAllPossibleConversionsRequest();

                // Get supported file formats
                var response = ConversionApi.GetAllPossibleConversions(request);

                foreach (var entry in response.Conversions)
                {
                   Debug.Print(string.Format("{0}: {1}", entry.SourceFileType,
                        string.Join(",", entry.PossibleConversions));
                }
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ConversionApi.GetAllPossibleConversions: " + e.Message);
            }
        }
    }
}

Licensing

All GroupDocs.Conversion for Cloud SDKs are licensed under MIT License.

Resources

Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.