send-file-add-server

Use the interface to add upload servers. Up to 8 sessions 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 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.

results matching ""

    No results matching ""

    results matching ""

      No results matching ""