forked from N4S4/synology-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/N4S4/synology-api
- Loading branch information
Showing
11 changed files
with
144 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
setuptools~=60.2.0 | ||
requests~=2.28.1 | ||
urllib3~=1.26.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# source: pages 8 and 16 on PDF: | ||
# https://global.download.synology.com/download/Document/Software/DeveloperGuide/Os/DSM/All/enu/DSM_Login_Web_API_Guide_enu.pdf | ||
CODE_SUCCESS = 0 | ||
CODE_UNKNOWN = 9999 | ||
|
||
error_codes = { | ||
CODE_SUCCESS: 'Success', | ||
100: 'Unknown error', | ||
101: 'No parameter of API, method or version', | ||
102: 'The requested API does not exist', | ||
103: 'The requested method does not exist', | ||
104: 'The requested version does not support the functionality', | ||
105: 'The logged in session does not have permission', | ||
106: 'Session timeout', | ||
107: 'Session interrupted by duplicated login', | ||
108: 'Failed to upload the file', | ||
109: 'The network connection is unstable or the system is busy', | ||
110: 'The network connection is unstable or the system is busy', | ||
111: 'The network connection is unstable or the system is busy', | ||
112: 'Preserve for other purpose', | ||
113: 'Preserve for other purpose', | ||
114: 'Lost parameters for this API', | ||
115: 'Not allowed to upload a file', | ||
116: 'Not allowed to perform for a demo site', | ||
117: 'The network connection is unstable or the system is busy', | ||
118: 'The network connection is unstable or the system is busy', | ||
119: 'Invalid session', | ||
# 120-149 Preserve for other purpose | ||
120: 'Preserve for other purpose', | ||
121: 'Preserve for other purpose', | ||
122: 'Preserve for other purpose', | ||
123: 'Preserve for other purpose', | ||
124: 'Preserve for other purpose', | ||
125: 'Preserve for other purpose', | ||
126: 'Preserve for other purpose', | ||
127: 'Preserve for other purpose', | ||
128: 'Preserve for other purpose', | ||
129: 'Preserve for other purpose', | ||
130: 'Preserve for other purpose', | ||
131: 'Preserve for other purpose', | ||
132: 'Preserve for other purpose', | ||
133: 'Preserve for other purpose', | ||
134: 'Preserve for other purpose', | ||
135: 'Preserve for other purpose', | ||
136: 'Preserve for other purpose', | ||
137: 'Preserve for other purpose', | ||
138: 'Preserve for other purpose', | ||
139: 'Preserve for other purpose', | ||
140: 'Preserve for other purpose', | ||
141: 'Preserve for other purpose', | ||
142: 'Preserve for other purpose', | ||
143: 'Preserve for other purpose', | ||
144: 'Preserve for other purpose', | ||
145: 'Preserve for other purpose', | ||
146: 'Preserve for other purpose', | ||
147: 'Preserve for other purpose', | ||
148: 'Preserve for other purpose', | ||
149: 'Preserve for other purpose', | ||
150: 'Request source IP does not match the login IP', | ||
400: 'No such account or incorrect password', | ||
401: 'Disabled account', | ||
402: 'Denied permission', | ||
403: '2 - factor authentication code required', | ||
404: 'Failed to authenticate 2 - factor authentication code', | ||
406: 'Enforce to authenticate with 2 - factor authentication code', | ||
407: 'Blocked IP source', | ||
408: 'Expired password cannot change', | ||
409: 'Expired password', | ||
410: 'Password must be changed', | ||
CODE_UNKNOWN: 'Unknown Error', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters