Create your account credentials
To set up your account credentials for backups, perform the following steps:
In the side navigation bar, click Credentials.
Click Create credentials.
If you already possess Google Drive account credentials, click Create credentials and then click Help me choose.
From the Which API are you using? menu, select Google Drive API.
From the Where will you be calling the API from? menu, select Web Server.
From the What data will you be accessing? menu, select User Data.
Click What credentials do I need?.
In the Create an OAuth 2.0 client ID. text box, enter your desired name.
In the Authorized redirect URIs text box, enter the https://hostname:2087/googledriveauth/callback link, where hostname represents your server's hostname.
To locate your server's hostname, perform either of the following actions:
Run the hostname command as the root user.
Navigate to WHM's Change Hostname interface (WHM >> Home >> Networking Setup >> Change Hostname). The server's hostname appear's under the Current Hostname heading.
Click Create. The interface will display your new client ID and client secret.
We strongly recommend that you save these credentials in a secure location. Step 7 of the Create a Google Drive transport procedure requires these credentials.
You can also download a JSON file with your client ID and client secret, or access them in the Credentials section.