get google Oauth2 access token using ONLY curl
I want to upload a pdf file to Google Drive using curl , for automated testing purposes. I have created an account on Google Cloud Platform(got client ID and Secret) and enabled the Google Drive API. All the methods to connect using OAuth2 involve a web browser or clicking some buttons, which I'm not intending to do. Is there any way to make the whole proces