Socket
Socket
Sign inDemoInstall

@maxim_mazurok/gapi.client.drive-v3

Package Overview
Dependencies
3
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.20231112 to 0.0.20231120

12

package.json
{
"name": "@maxim_mazurok/gapi.client.drive-v3",
"version": "0.0.20231112",
"version": "0.0.20231120",
"description": "TypeScript typings for Google Drive API v3",
"repository": {
"type": "git",
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
},
"license": "MIT",
"author": {
"name": "Maxim Mazurok",
"email": "maxim@mazurok.com",
"name": "Maxim Mazurok",
"url": "https://maxim.mazurok.com"
},
"repository": {
"type": "git",
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
},
"types": "index.d.ts",

@@ -16,0 +16,0 @@ "dependencies": {

@@ -28,6 +28,9 @@ # TypeScript typings for Google Drive API v3

```typescript
gapi.client.load('https://www.googleapis.com/discovery/v1/apis/drive/v3/rest', () => {
// now we can use:
// gapi.client.drive
});
gapi.client.load(
'https://www.googleapis.com/discovery/v1/apis/drive/v3/rest',
() => {
// now we can use:
// gapi.client.drive
}
);
```

@@ -49,38 +52,39 @@

scope = [
// See, edit, create, and delete all of your Google Drive files
'https://www.googleapis.com/auth/drive',
// See, edit, create, and delete all of your Google Drive files
'https://www.googleapis.com/auth/drive',
// See, create, and delete its own configuration data in your Google Drive
'https://www.googleapis.com/auth/drive.appdata',
// See, create, and delete its own configuration data in your Google Drive
'https://www.googleapis.com/auth/drive.appdata',
// See, edit, create, and delete only the specific Google Drive files you use with this app
'https://www.googleapis.com/auth/drive.file',
// See, edit, create, and delete only the specific Google Drive files you use with this app
'https://www.googleapis.com/auth/drive.file',
// View and manage metadata of files in your Google Drive
'https://www.googleapis.com/auth/drive.metadata',
// View and manage metadata of files in your Google Drive
'https://www.googleapis.com/auth/drive.metadata',
// See information about your Google Drive files
'https://www.googleapis.com/auth/drive.metadata.readonly',
// See information about your Google Drive files
'https://www.googleapis.com/auth/drive.metadata.readonly',
// View the photos, videos and albums in your Google Photos
'https://www.googleapis.com/auth/drive.photos.readonly',
// View the photos, videos and albums in your Google Photos
'https://www.googleapis.com/auth/drive.photos.readonly',
// See and download all your Google Drive files
'https://www.googleapis.com/auth/drive.readonly',
// See and download all your Google Drive files
'https://www.googleapis.com/auth/drive.readonly',
// Modify your Google Apps Script scripts' behavior
'https://www.googleapis.com/auth/drive.scripts',
],
immediate = true;
// Modify your Google Apps Script scripts' behavior
'https://www.googleapis.com/auth/drive.scripts',
],
immediate = true;
// ...
gapi.auth.authorize(
{ client_id: client_id, scope: scope, immediate: immediate },
{client_id: client_id, scope: scope, immediate: immediate},
authResult => {
if (authResult && !authResult.error) {
/* handle successful authorization */
/* handle successful authorization */
} else {
/* handle authorization error */
/* handle authorization error */
}
});
}
);
```

@@ -87,0 +91,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc