adamstirtan / Synology.Api.Client

.NET/C# client for the Synology API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Synology API Client (.NET/C#) Build status Test status NuGet Version NuGet Downloads

A client written in .NET/C# for the Synology API - https://www.synology.com/en-us/support/developer#tool

⚠️ WORK IN PROGRESS

I've only implemented the endpoints that I'm currently using but please feel free to request changes or submit contributions.

Usage:

const string dsmUrl = "http://192.168.0.1:5001/";

var client = new SynologyClient(dsmUrl);

// Retrieve all API description objects
var apiInfo = await client.InfoApi().QueryAsync();

// Authenticate
await client.LoginAsync("username", "password");

// List all shares
var shares = await client.FileStationApi().ListEndpoint().ListSharesAsync();

// Upload file
var uploadResult = await client.FileStationApi().UploadEndpoint().UploadAsync("path_to_file", "destination");

// End session
await client.LogoutAsync(session);

APIs Implemented

SYNO.API Methods
Auth login logout
Info query
SYNO.FileStation Methods
List list_share
Upload upload
CopyMove start status stop
Extract start status stop list
SYNO.DownloadStation Methods
Task list

About

.NET/C# client for the Synology API

License:MIT License


Languages

Language:C# 100.0%