I’m using Google Drive API and Auth 2.0 to upload files to my Google Drive follow this tutorial: https://medium.com/@munsifmusthafa03/building-a-file-upload-service-to-your-google-drive-using-oauth-2-0-d883d6d67fe8. But it needs UI to complete, I rather go to my Drive and upload my file instead. Is there any way to upload a file directly to my Google Drive without unnecessary steps?
I never use spring to access google drive, but I’m already working with other file storage services. I think Google works with http, for this reason you can have a Java http client. The following post shows some useful http clients for java Top 5 solutions for Java Http Clients.
But you can also use restTemplate or Webclient, which provides information directly from spring onwards. Just choose what suits your needs. I hope i could help you.