Library has two public classes:

  • FileCloudAPIWrapper class - provide .Net wrapper functions over standard API.
  • FileCloudUploader class - for direct file download.


Examples.

FileCloudAPIWrapper

// First you need to get api key for user.
var apiKey = FileCloudAPIWrapper.FetchApiKey(username, password);

// Then you can download file.
var uKey = FileCloudAPIWrapper.Uploading(filepath, apiKey);

// We can convert file key to url.
var fileUrl = string.Format(@"http://filecloud.io/{0}", fileKey);


FileCloudUploader

You can either use class static method:

FileCloudUploader.Upload(username, password, filepath); 

or create object and use its method:

var uploader = new FileCloudUploader(username, password);
var fileUrl = uploader.Upload(filepath);

Last edited Nov 10, 2012 at 8:51 PM by Seekeer, version 4

Comments

No comments yet.