SynologyClient 0.1.0
See the version list below for details.
dotnet add package SynologyClient --version 0.1.0
NuGet\Install-Package SynologyClient -Version 0.1.0
<PackageReference Include="SynologyClient" Version="0.1.0" />
paket add SynologyClient --version 0.1.0
#r "nuget: SynologyClient, 0.1.0"
// Install SynologyClient as a Cake Addin #addin nuget:?package=SynologyClient&version=0.1.0 // Install SynologyClient as a Cake Tool #tool nuget:?package=SynologyClient&version=0.1.0
This is a .Net implementation of the https API for Synology File Station based on "Synology File Station Official API" available at https://www.synology.com.
Example:
using Synology.DataTypes;
using Synology;
// Connecting and logging in
Client client = new("https://nas.quickconnect.to", 5001, TimeSpan.FromSeconds(10));
if (!client.API.Connect())
return;
if (!client.API.Login("user", "password"))
return;
// Getting drives
Response<SharedDriveList> sharedDriveResponse = client.FileStation.ListSharedDrives([]);
foreach (ListEntry item in sharedDriveResponse.data.shares)
Console.WriteLine(item.name);
// Getting files
Response<FileList> listResponse = client.FileStation.List("/Pictures", []);
foreach (ListEntry item in listResponse.data.files)
Console.WriteLine(item.name);
// Logging out
client.API.Logout();
Features: - Connect, query the API - Login, Logout - List files in directory - List shared drives
Planned: - Download file - Upload file - Get image thumbnail
"Synology File Station Official API" direct link: https://global.synologydownload.com/download/Document/Software/DeveloperGuide/Package/FileStation/All/enu/Synology_File_Station_API_Guide.pdf
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.