Giter Club home page Giter Club logo

redundancy-library's Introduction

redundancy-library

Build Status Image of R2

Core client library to communicate with Redundancy servers.

Requirements

  • .NET Framework 4
  • Redundancy server version 1.9.15+

Further documentation

See http://redundancy.pfweb.eu/doc/1.9.15/index.html for more details

Sample

Authentification:

string userName = "username";
string password = "password";
string target = "http://server//Includes/api.inc.php";

// this method authorizes the given user and returns true or false
var authOk = Authentification.Authorize(userName, password, target);

The access to the Redundancy-Server will be done with diffrent kernel classes. At the moment there is only the "FileSystemKernel" implemented. Other ones following in next versions.

Example for accessing the Redundancy-FileSystem:

var fileSystemKernel = new FileSystemKernel(target);

// creating new dir in root direcotry
fileSystemKernel.CreateDirectory(-1, "Dir-Name");

// move any entry (file or direcotry)
var result = fileSystemKernel.MoveEntryById(1, 2);

// Upload file
using (var fileInfo = new FileInfo(@"DataPath"))
{
  var result = fileSystemKernel.UploadFile(-1, fileInfo);
}

License

See LICENSE for more details

redundancy-library's People

Contributors

cmllr avatar lucawelker avatar

Stargazers

Luca Welker avatar Christian Malek avatar

Watchers

Timo avatar Christian Malek avatar Luca Welker avatar  avatar

Forkers

lanicon

redundancy-library's Issues

Implement function wrapper

The current imlementation is too error prone. I recommend an function wrapper who encapsulates the functions and reduces the amount of parameters.

Throw correct errors with error text

At the moment the library throws on Api-Errors only a WebException with the error number as message.

Next step is to throw correct error types and messages.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.