![]() ![]() Step 3: Create drive_client.py file class DriveClient(object): def connect(self): creds_filename = store = file.Storage(creds_filename) creds = store.get() if not self.creds or : scope = '' flow = client.flow_from_clientsecrets(creds_filename, scope) creds = n_flow(flow, store) service = build('drive', 'v3', http=thorize(Http())) It will download ‘credentials.json’ file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |