Certainly.
Goole JavaScript client library
You can use the JavaScript client library to interact with Google
APIs, such as People, Calendar, and Drive, from your web applications. (developers.google.com)
You need to import the Google API Client Library first.
<script src="https://apis.google.com/js/api.js"></script>
...and initialize it:
function start() {
// 2. Initialize the JavaScript client library.
gapi.client.init({
'apiKey': 'YOUR_API_KEY',
// Your API key will be automatically added to the Discovery Document URLs.
'discoveryDocs': ['https://people.googleapis.com/$discovery/rest'],
// clientId and scope are optional if auth is not required.
'clientId': 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com',
'scope': 'profile',
}).then( /* your requests go HERE */ )
};
// 1. Load the JavaScript client library.
gapi.load('client', start);
...to finally proceed with your requests.
Links :
In the Quickstart - Javascript documentation page, you will find a simple example of the Drive API usage.
https://developers.google.com/drive/v3/web/quickstart/js
And all the detals about the Javascript client library in :
https://developers.google.com/api-client-library/javascript/start/start-js