Google Drive API - solitaa/RepoNat GitHub Wiki
Setup
Follow the guide here to get the CLIENT CONFIGURATION and save it in credentials.json file.
You can manage credentials here. If you use more than one email be sure you are logged in to correct one or log in in incognito window with the one you need. It maybe will ask to create a developer profile, do it by following the told steps.
Probably Google Drive API V3 has bugs, it does not save the project name we provide, it saves the default name - QuickStart. But it does not affect the api work.
When running adinit
first time i.e. downloading the files from google drive first time, in terminal it will provide an authorization url. After opening the url, it will give a code which should be pasted in terminal. Then the files should be downloaded.
Note: When testing do not trust fully the sample codes google provided, some of them has bugs. For example the code to download the files.
When listing files these params are added to enable downloading from shared drives. It out case it is essential as the assets of creatives are located in shared Sales folder.
supportsAllDrives: true,
includeItemsFromAllDrives: true