You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
595 B

  1. from gapi.api import API
  2. APPLICATION_NAME = "Google Calendar API Python"
  3. class drive_api(API):
  4. def __init__(
  5. self,
  6. app_name,
  7. client_secret_file,
  8. credentials_dir,
  9. scopes = 'https://www.googleapis.com/auth/drive',
  10. version = 'v3',
  11. ):
  12. super().__init__('drive',scopes,app_name,client_secret_file,credentials_dir,version)
  13. def get_files(self):
  14. pass
  15. if __name__ == "__main__":
  16. my_api = drive_api(APPLICATION_NAME,r'..\test\drive\client_secret.json',r'..\test\drive')
  17. service = my_api.service