如何从网络浏览器访问 Google Drive API 服务帐户 [英] How to get an access to Google Drive API service account from web browser

查看:51
本文介绍了如何从网络浏览器访问 Google Drive API 服务帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用服务帐户"方法来使用 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?

任何帮助将不胜感激!

推荐答案

您可能想看看 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].

  1. https://github.com/michaelrhanson/jwt-js
  2. https://developers.google.com/accounts/docs/OAuth2ServiceAccount

这篇关于如何从网络浏览器访问 Google Drive API 服务帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆