send-file-add-server
Added at V2.3
Use this interface to add a server for file uploading, up to 8 servers are supported.
HTTP Request
GET http://ip/usapi?method=send-file-add-server&type=xxx&net-mode=1&...
| Parameter | Description |
|---|---|
| method | send-file-add-server |
| type | Server type. 0: FTP/SFTP 1: Google Drive 2: Dropbox 3: YouTube |
| net-mode | Network priority. 0: mobile broadband first 1: wired network first 2: wireless network first |
| FTP/SFTP upload parameters | |
| proto | Protocol type. 0: FTP 1: SFTP |
| url | Server URL |
| port | Server port. |
| dir-name | File directory name. |
| encryption | FTP encryption types. 0: use plaintext FTP only 1: require explicit FTP over TLS 2: require implicit FTP over TLS |
| login-type | Login types. 0: anonymous 1: normal |
| user-name | Username |
| passwd | Password |
| mode | Transport mode. 0: active 1: passive |
| Google Drive upload parameters | |
| account-id | Account ID |
| photo-path | User avatar address |
| user-name | Username |
| access-token | Access token. |
| refresh-token | Refresh token |
| dir-name | Directory name. |
| parents | Parent directory ID. |
| Dropbox upload parameters | |
| account-id | Account ID |
| photo-path | User avatar address |
| user-name | Username |
| access-token | Access token. |
| refresh-token | Refresh token |
| dir-name | Directory name. |
| YouTube upload parameters | |
| account-id | Account ID |
| photo-path | User avatar address |
| user-name | Username |
| access-token | Access token. |
| refresh-token | Refresh token |
| privacy | Authority |
Response Body
{
"result": 0
}
| Item | Description |
|---|---|
| result | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |