Fix obsolete API version.

This commit is contained in:
Christian Schlichtherle 2021-10-17 20:52:48 +02:00
parent f364d970f3
commit c2f5dc0f03
1 changed files with 2 additions and 1 deletions

View File

@ -20,9 +20,10 @@ class SynologyHttpClient {
async login() {
if (!this.sid) {
// See https://global.download.synology.com/download/Document/Software/DeveloperGuide/Os/DSM/All/enu/DSM_Login_Web_API_Guide_enu.pdf
const data = {
api: "SYNO.API.Auth",
version: "2",
version: "6",
method: "login",
account: this.options.username,
passwd: this.options.password,