The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

cloud_dns.pl

Provides an OAUTH'd client interface to https://developers.google.com/drive/api/v3/reference/

    perl drive_example.pl 

NB:

PRE-REQUISITES

Setup a Google Project in the Google Console and add the Translate API Library. You may need to enable billing to access Google Cloud Services.

Projects require the API to be enabled for the project in the APIs console. https://console.cloud.google.com/apis/library/drive.googleapis.com?q=drive

drive.googleapis.com

Setup an OAUTH Credential set and feed this into the CLI goauth included in WebService::GoogleAPI::Client and use the tool to authorise your user to access the project which will also create the local gapi.json config.

assumes gapi.json configuration in working directory with scoped project and user authorization

RELEVANT SCOPES

https://www.googleapis.com/auth/drive
and others
https://developers.google.com/drive/api/v3/reference/
https://developers.google.com/apis-explorer/

OTHER INTERFACES TO GOOGLE DRIVE SERVICES

gcloud Google SDK https://cloud.google.com/sdk/install

The Cloud SDK is a set of tools for Cloud Platform. It contains gcloud, gsutil, and bq, which you can use to access Google Compute Engine, Google Cloud Storage, Google BigQuery, and other products and services from the command-line.

You can run these tools interactively or in your automated scripts. https://cloud.google.com/sdk/gcloud/reference/dns/

Currently it appears the gcloud does not provide support for the Drive API as asked https://groups.google.com/forum/#!topic/google-cloud-dev/OU_4S2f6GR0

Net::Google::Drive

Provides a simlified interface to commonly used end-points.

https://metacpan.org/pod/Net::Google::Drive