项目作者: groupdocs-viewer-cloud

项目描述 :
.NET library to communicate with the GroupDocs.Viewer Cloud API. View or render Word, Excel, PowerPoint, CAD, Visio, PDF, OpenDocument, email & image formats.
高级语言: C#
项目地址: git://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet.git
创建时间: 2018-01-10T10:05:40Z
项目社区:https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet

开源协议:MIT License

下载


GroupDocs.Viewer Cloud SDK for .NET

This repository contains GroupDocs.Viewer Cloud SDK for .NET source code. This SDK allows you to work with GroupDocs.Viewer 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.

Installation

Install GroupDocs.Viewer-Cloud via NuGet

From the command line:

  1. nuget install GroupDocs.Viewer-Cloud

From Package Manager:

  1. PM> Install-Package GroupDocs.Viewer-Cloud

From within Visual Studio:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages…
  4. Click on the Browse tab and search for “GroupDocs.Viewer-Cloud”.
  5. Click on the GroupDocs.Viewer-Cloud package, select the appropriate version in the right-tab and click Install.

Dependencies

Getting Started

  1. using System;
  2. using System.Diagnostics;
  3. using GroupDocs.Viewer.Cloud.Sdk.Api;
  4. namespace Example
  5. {
  6. public class Example
  7. {
  8. public void Main()
  9. {
  10. //TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
  11. var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
  12. var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  13. var api = new InfoApi(appSid, appKey);
  14. try
  15. {
  16. // Get supported file formats
  17. var response = api.GetSupportedFileFormats();
  18. foreach (var format in response.Formats)
  19. {
  20. Debug.Print(format.ToString());
  21. }
  22. }
  23. catch (Exception e)
  24. {
  25. Debug.Print("Something went wrong: " + e.Message);
  26. }
  27. }
  28. }
  29. }

Licensing

All GroupDocs.Viewer 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.