Fix obsolete API version.
This commit is contained in:
parent
f364d970f3
commit
c2f5dc0f03
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue