How can I retrieve a service account OAuth2 token from Google Api with Javascript?
问题 I need to use a google projects service account to access google API using JavaScript. In order to do this I need to OAuth2 to google API servers to get an auth token. I understand that Google provides a library (GAPI) for use on node servers, but I need a solution that will work in other secure JavaScript environments. 回答1: There are two major divisions to this task. Configuring Coding First the Configuration steps. If you don't have a google account: Navigate to google.com Find and Click