|
|
|
@ -0,0 +1,17 @@ |
|
|
|
from gapi.api import API |
|
|
|
APPLICATION_NAME = "Google Calendar API Python" |
|
|
|
class drive_api(API): |
|
|
|
def __init__( |
|
|
|
self, |
|
|
|
app_name, |
|
|
|
client_secret_file, |
|
|
|
credentials_dir, |
|
|
|
scopes = 'https://www.googleapis.com/auth/drive', |
|
|
|
version = 'v3', |
|
|
|
): |
|
|
|
super().__init__('drive',scopes,app_name,client_secret_file,credentials_dir,version) |
|
|
|
def get_files(self): |
|
|
|
pass |
|
|
|
if __name__ == "__main__": |
|
|
|
my_api = drive_api(APPLICATION_NAME,r'..\test\drive\client_secret.json',r'..\test\drive') |
|
|
|
service = my_api.service |