send-file-set-server
Added at V2.3
Use the interface to edit settings of the upload server.
HTTP Request
GET http://ip/usapi?method=send-file-set-server&id=xxx&type=xxx&net-mode=1&...
Parameter | Description |
---|---|
method | send-file-set-server |
id | Server ID |
type | Server type. 0: FTP/SFTP 1: Google Drive 2: Dropbox 3: YouTube |
net-mode | Indicates the network priority. 0: Mobile broadband first 1: wired Ethernet first 2: Wi-Fi first |
FTP/SFTP | |
proto | Protocol type. 0: FTP 1: SFTP |
url | Server address. |
port | Server port. |
dir-name | Target directory name. |
encryption | FTP encryption type. 0: plaintext FTP only 1: explicit FTP over TLS 2: implicit FTP over TLS |
login-type | Login type. 0: Anonymous 1: Normal |
user-name | User name. |
passwd | User password. |
mode | Transfer mode. 0: active 1: passive |
Google Drive | |
account-id | Account id. |
photo-path | Path for User avatar. |
user-name | User name. |
access-token | Access token. |
refresh-token | Refresh token. |
dir-name | Target directory name. |
parents | Parents folder id |
Dropbox | |
account-id | Account id. |
photo-path | Path for User avatar. |
user-name | User name |
access-token | Access token. |
refresh-token | Refresh token. |
dir-name | Target directory name. |
YouTube | |
account-id | Account id. |
photo-path | Path for User avatar. |
user-name | User name |
access-token | Access token. |
refresh-token | Refresh token. |
privacy | Privacy |
Response Body
{
"result": 0
}
Item | Description |
---|---|
result | Returned status. 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |