标签: java service console private-key
我想从google api console获取私钥。
我可以手动完成,但我想在JAVA中以编程方式完成。
以下引用使用私钥文件进行身份验证google apis。
1)"Login Required" 401 Unauthorized message when calling the v3 Google Calendar API using a Service Account via OAuth 2.0
2)Authenticating Google API with a service account with Java API
一旦我从谷歌控制台导出私钥文件,我将使用它进行身份验证,如上面的链接所示。
我在JAVA中使用带有Oauth 2.0的google api 2.0版。