简体   繁体   中英

Android - Google Sheets API v4 getting Error 403

i am trying to read google sheet's data via its API v4 . but every time it is saying PERMISSION_DENIED with error code 403

i am following it's official guide to get it done Checkout here

here are some info to set it up

String spreadsheetId = "1uZRU6AgOEHU4iNrLzg5NcotLeIwdhdvAxjG-tGI2zZc";
String range = "Sheet1";

Error response :

{
  "error": {
    "code": 403,
    "message": "The caller does not have permission",
    "status": "PERMISSION_DENIED"
  }
}

Any help will be really appreciable

Thanks in Advance!

Very happy that i resolved it by self.

just posting answer to let other know what was the problem.

actually i my google sheet was private so just made it public (accessible to all) and bingo!

Thnaks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM