如何从Web浏览器访问Google Drive API服务帐户 [英] How to get an access to Google Drive API service account from web browser
问题描述
我使用服务帐户方式使用Google Drive API。
我需要通过Web浏览器访问我的存储以创建文件夹结构,并且可以快速更改/删除/添加文件,而无需调用API命令。
是否有能力在xxx@developer.gserviceaccount.com帐户下登录?或者还有其他方法吗?
I use "Service account" method for using Google Drive API. I need to get an access to my storage through Web browser to make a folder structure and have an ability to change/remove/add files quickly without calling API commands. Is there an ability to login under xxx@developer.gserviceaccount.com account? Or are there any other ways?
任何帮助都会真正感谢!
Any help would be really appreciated!
推荐答案
您可能希望查看JWT JavaScript实现(如jwt-js [1])以重新实现服务帐户认证流程[2]。
You may like to take a look at JWT JavaScript implementations such as jwt-js [1] to reimplement the service account auth flow [2].
- https://github.com/michaelrhanson/jwt-js li>
- https://developers.google.com/accounts/docs/ OAuth2ServiceAccount
- https://github.com/michaelrhanson/jwt-js
- https://developers.google.com/accounts/docs/OAuth2ServiceAccount
这篇关于如何从Web浏览器访问Google Drive API服务帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!