The Wayback Machine - https://web.archive.org/web/20200930175044/https://github.com/saguiitay/CopyRestAPI
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

README.md

CopyRestAPI

CopyRestAPI is a C# client for the Copy cloud storage service through its RESTful API.

About

CopyRestAPI is a C# client for the Copy cloud storage service through its RESTful API.

CopyRestAPI aims towards being the most comprehensive implementation for the Copy REST API in .Net/C#.

Features

  • Full Async support
  • Full implementation of the API:
    • Support for OAuth Handshare
    • Support for User Profile methods
    • Support for Filesystem methods
    • Support for Links methods

Contact

You can contact me on twitter @saguiitay.

NuGet

CopyRestAPI is available as a NuGet package

Release Notes

  • 1.0.0 Initial release.

Usage

var client = new CopyClient(
    new Config
        {
            CallbackUrl = "https://www.yourapp.com/Copy",
            ConsumerKey = ConsumerKey,
            ConsumerSecret = ConsumerSecret,

            //Token = Token,
            //TokenSecret = TokenSecret
        });

// Perform authorization (alternatively, provide a Token and TokenSecret in the Config object passed to CopyClient
await Authorize(client);

// Retrieve information on the logged-in user
var user = await client.UserManager.GetUserAsync();

// Retrieve the root folder of the logged-in user
var rootFolder = await client.GetRootFolder();

foreach (var child in rootFolder.Children)
{
    var childInfo = await client.FileSystemManager.GetFileSystemInformationAsync(child.Id);
}

About

CopyRestAPI is a C# client for the Copy cloud storage service through its RESTful API.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.