If you need to access your files from a program in Google Drive without needing you to authenticate yourself, that is, a machine-to-machine communication, then you will need to set up a service account.
Creating a service account
To create a service account, first, you need to create a project