src/Synology.Api.Sdk.ConsumerSample/ is a console app that exercises the SDK against a real Synology NAS. It demonstrates the full API workflow: query API info, login, perform operations (FileStation search, Foto album browsing, FotoTeam downloads), then logout.
Configuration: Requires appsettings.json with UriBase (ServerIpOrHostname, Port) and User (Account, Password) sections. Credentials should be stored via .NET User Secrets (dotnet user-secrets set "User:Account" "value" etc.) — the app loads secrets from the assembly's UserSecretsId.
Typical call flow (shown in Program.cs):
ApiInfoRequest→ discover available API versionsLoginRequest→ authenticate, receiveSynoToken/Sid- API calls using
SynoTokenfor auth (FileStation, Foto, FotoTeam) LogoutRequest→ end session
For file downloads, use the DownloadAsync method on the corresponding domain client (e.g., FotoTeamApi.DownloadAsync) which returns a RawResponse, along with DownloadHelpers.DownloadImageOrZipFromFotoApi.