update-auto-backup-server

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

Request Mode

POST http://ip/mwapi/update-auto-backup-server
{
    "id":0,
    "type":1,
    "inUse":1,
    "accountId":"115575044591555733090",
    "userName":"junyi zhang",
    "photoPath":"https://lh3.googleusercontent.com/a/ALm5wu0Pln7FioQUACaDOD7XlfL8Fuw62-FK_DttJVZG=s96-c",
    "accessToken":"ya29.a0Aa4xrXM88AfaUuTRFQMNaB55EQ0OApS8yCDxxQfnvkzbCP9_Tu7TAbRUdWGuD73G8ro1TVMT51v0x3E9pxoTADeCIHLWTI-HXB2ZnvmY4NgzJ6friaV9NrbLn7CIXI5TPaejwHvGGT9lc6hOz0KRcA8NlfLFaCgYKATASARMSFQEjDvL9nX84AAsOjhFdLCSuoNTOdg0163",
    "refreshToken":"1//06XDuRKlWs6_QCgYIARAAGAYSNwF-L9IrerRiMSl1Dh1ItMJyCfYjsehhmK38z-6T0d-cDX9Z6mUd1mztXEDX4RQunTzDklYCFSA",
    "dirName":"",
    "invalid":0,
    "remoteDiskFull":0
}
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 ""