Skip to content

Corsinvest/cv4urb-api-dotnet

Repository files navigation

Corsinvest.UrBackup.Api

License Nuget AppVeyor branch Donate to this project using Paypal

UrBackup Client API .Net

Nuget Api

   ______                _                      __
  / ____/___  __________(_)___ _   _____  _____/ /_
 / /   / __ \/ ___/ ___/ / __ \ | / / _ \/ ___/ __/
/ /___/ /_/ / /  (__  ) / / / / |/ /  __(__  ) /_
\____/\____/_/  /____/_/_/ /_/|___/\___/____/\__/

Corsinvest for UrBackup Api Client  (Made in Italy)

Copyright and License

Copyright: Corsinvest Srl For licensing details please visit LICENSE.md

Commercial Support

This software is part of a suite of tools called cv4pve-tools. If you want commercial support, visit the site

Main features

  • Easy to learn
  • Method named
  • Return result
    • Request
    • Response
    • Status
  • Method direct access
    • Get
    • DownloadFile
  • Login return bool if access
  • Return Result class more information

Result

The result is class Result and contain properties:

  • Response returned from UrBackup (data,errors,...) Class or dynamic ExpandoObject
  • StatusCode (System.Net.HttpStatusCode): Status code of the HTTP response.
  • ReasonPhrase (string): The reason phrase which typically is sent by servers together with the status code.
  • IsSuccessStatusCode (bool) : Gets a value that indicates if the HTTP response was successful.

Usage

var client = new UrBackupClient(false, "10.92.90.96", 55414);
if (client.Login("test", "test"))
{
    //list client last backup
    foreach (var item in client.Backups.Get().Response.Clients)
    {
        Console.Out.WriteLine(item.Name);
    }
}