Write to GoogleSheet via API with Java

后端 未结 4 1949
死守一世寂寞
死守一世寂寞 2020-12-11 16:18

I am trying to write a value to a cell with Google Sheet API with Java. For reading I used guide from Java Quickstart which worked fine for me.

For writing to Google

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 17:00

    I was having the same issue. I resolved the problem that was in the scope. I just changed

    SheetsScopes.SPREADSHEETS.READONLY
    

    To

     SheetsScopes.SPREADSHEETS
    

    And it works very well.

提交回复
热议问题