UploadcareCSharp 1.0.1

C# library for accessing Uploadcare API

Install-Package UploadcareCSharp -Version 1.0.1
dotnet add package UploadcareCSharp --version 1.0.1
<PackageReference Include="UploadcareCSharp" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UploadcareCSharp --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

C# library for Uploadcare. Uploadcare is a content delivery platform that optimizes web performance for developers, startups and large enterprises.

Supported features:

  • Full Uploadcare API v0.5 (file, group, project and webhook)
  • CDN path builder
  • File uploads from disk, byteArray, and URL
  • Signed uploads
  • Simple and signed auth

TODO:

  • Multi-part uploads
  • Throttling

Examples

Basic API Usage

var client = UploadcareClient.DemoClientWithSignedAuth();

var project = await client.Projects.GetAsync();
var file = await client.Files.GetAsync("85b5644f-e692-4855-9db0-8c5a83096e25");

Building CDN URLs

var file = await client.Files.GetAsync("85b5644f-e692-4855-9db0-8c5a83096e25");
var builder = new CdnPathBuilder(file)
        .ResizeWidth(200)
        .CropCenter(200, 200)
        .Grayscale();
        
var url = builder.Build();

File uploads

var file = new FileInfo("Lenna.png");

try
{
  var uploader = new FileUploader(client);
  var result = await uploader.Upload(file);
  
  Console.Writeline(result.FileId);
} 
catch (UploadFailureException ex) 
{
    Console.Writeline("Upload failed :(");
}

For any requests, bug or comments, please open an issue or submit a pull request.

C# library for Uploadcare. Uploadcare is a content delivery platform that optimizes web performance for developers, startups and large enterprises.

Supported features:

  • Full Uploadcare API v0.5 (file, group, project and webhook)
  • CDN path builder
  • File uploads from disk, byteArray, and URL
  • Signed uploads
  • Simple and signed auth

TODO:

  • Multi-part uploads
  • Throttling

Examples

Basic API Usage

var client = UploadcareClient.DemoClientWithSignedAuth();

var project = await client.Projects.GetAsync();
var file = await client.Files.GetAsync("85b5644f-e692-4855-9db0-8c5a83096e25");

Building CDN URLs

var file = await client.Files.GetAsync("85b5644f-e692-4855-9db0-8c5a83096e25");
var builder = new CdnPathBuilder(file)
        .ResizeWidth(200)
        .CropCenter(200, 200)
        .Grayscale();
        
var url = builder.Build();

File uploads

var file = new FileInfo("Lenna.png");

try
{
  var uploader = new FileUploader(client);
  var result = await uploader.Upload(file);
  
  Console.Writeline(result.FileId);
} 
catch (UploadFailureException ex) 
{
    Console.Writeline("Upload failed :(");
}

For any requests, bug or comments, please open an issue or submit a pull request.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 41 12/5/2019
0.3.2 1,717 8/11/2016
0.3.1 444 8/14/2015
0.3.0 339 7/25/2015
0.2.0 317 7/25/2015
0.1.0 335 7/18/2015