Java and Google Spreadsheets API Authorization with OAuth 2.0

后端 未结 3 909
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 10:22

I want to read Google Spreadsheets using Java, and the recommended way to do this is using the Google Spreadsheets API.

The problem begins when you want to make proc

3条回答
  •  执念已碎
    2020-12-18 11:07

    [Edit]

    Java OAuth2 code

    Blog post on [google-spreadsheet-api] and OAuth2, with code
    http://soatutorials.blogspot.co.at/2013/08/google-spreadsheet-api-connecting-with.html

    Related question: OAuth2 authorization from Java/Scala using google gdata client API

    [end edit]

    I used: Google drive DrEdit tutorial, full example shows how to use OAuth 2.0 with Drive. The code works with google spreadsheets GData style API. (note: does not include refresh token, but the refresh token works as you would expect, so not hard too add.) -

    Extra Note: A better documented API is Google-Apps-Script.

提交回复
热议问题