Skip to content

An example class that can be used to access GoogleDrive resources including GoogleTeam. This class uses service account to act on behalf of another user.

Notifications You must be signed in to change notification settings

sazaamout/gDrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

gDrive

This is just an example class to demostrate how to use google drive API including googleTeamDrive and to demostrate how to service account.

prerequisites

  1. a service account must be setup, follow the following link to setup a service account. https://support.google.com/a/answer/7378726?hl=en
  2. go to Credentials > Manage Service Account then 'View Client ID'. copy the client ID to clipboard
  3. launch the GSuite Admin Console
  4. Go to Security>Advanced Settings>Mange API client access.
  5. Paste the Client ID in the Client Name field, add the following API scopes and click Authorize: https://www.googleapis.com/auth/admin.directory.group, https://www.googleapis.com/auth/admin.directory.user, https://www.googleapis.com/auth/calendar.readonly, https://www.googleapis.com/auth/drive

About

An example class that can be used to access GoogleDrive resources including GoogleTeam. This class uses service account to act on behalf of another user.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages