How to authenticate Google Drive without requiring the user to copy/paste auth code?

前端 未结 3 521
旧时难觅i
旧时难觅i 2021-02-01 09:44

I\'m playing around with the DriveCommandLine applicaiton to learn the Drive API a bit. I\'m just wondering if it is possible to authenticate my desktop application with Google

3条回答
  •  [愿得一人]
    2021-02-01 10:27

    Change your redirect_uri to your localhost page or project page.The request at the provided link will have your code sent. Request will have code="yourauthcode" in its url. Example: https://yourwebsite.com/yourpage.htm?code="yourauthcode"

提交回复
热议问题