How to get an access to Google Drive API service a

2019-02-11 11:04发布

问题:

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!

回答1:

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