Upload files to the cloud using an email address

So I'm not sure if this is possible, and if that makes sense at all. I am trying to learn and use cloud space in my application. So, as an example, I tried to create an application to upload files to Google Drive. I registered my application and used some links given by Google. And now I can upload files.

I have registered your application with the help of myname@gmail.comand used Client_Id, and Client_Secretin my account to create the application. When I upload files, the files are uploaded to my account myname@gmail.com. But I want my application to provide the user with the ability to log into the gmailaccount system . Anyone who logs in (say, via email your@gmail.com), my application should be able to upload files to this account. I believe the stand-alone Google Drive desktop app works the same. Enter your username and password and the files will be synced with this account. Can someone give me some sample code?

I want to upload files, read them, delete, share them through my application. I do not give any sample code, but if necessary, let me know. Thanks.

+1
source share
1 answer

Can you do this. You will need to go to the user at a specific URL, where he will enter his email address and password. After that, Google will provide you with an authorization code and update the token. You can update the token to get an authorization code whenever it expires. This authorization code is used to work with the user drive.

-, URL. Windows, 2

  • DocumentTitle
  • - ( ).

CLIENT_ID CLIENT_SECRET.

+1

Source: https://habr.com/ru/post/1525573/


All Articles