latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Backups
Backup Destination

Create Google Drive™ OAuth redirect URI

This function generates a Google Drive™ OAuth redirect URI.

get/backup_generate_google_oauth_uri

Query parameters

client_idstring required
Example:aBcdeFgHIjK123

The Google Drive client ID.

client_secretstring required
Example:aBcde123FgHIjK456

The Google Drive client secret.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "uri": "https://accounts.google.com/o/oauth2/auth?client_id=aBcdeFgHIjK123&response_type=code&redirect_uri=https%3A%2F%2Fhost-10-0-0-2.example.tld%3A2087%2Fgoogledriveauth%2Fcallback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&access_type=offline&prompt=consent&state=IkdLqOej5CLPW1nHRF6OJYaahE7HPXrRUvpFs6MhmBMbCjvWDQcstyYhbUFge5IJ"
  },
  "metadata": {
    "command": "backup_generate_google_oauth_uri",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}