Use the interface to set the authentication account of Google Drive.

Request Mode

POST http://ip/mwapi/update-auto-backup-server
    "userName":"junyi zhang",
Parameter Description
id The unique ID. Currently, it only supports one authenticated account. By default, it is 0.
type The account type. Currently, it only supports the Google Drive platform.
inUse Whether it is enabled. Currently, it only supports one authenticated account, which is enabled by default.
accountId The account ID
userName The user name
photoPath The user account photo
accessToken The access token
refreshToken The refresh token
dirName The upload directory, not supported now
invalid Invalid authentication. 0: Normal 1: Invalid authentication
remoteDiskFull The cloud storage is full. 0: Not full 1: Full

Response Body

  "status": 0,
Name Description
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 ""