Android - Google Sheets API v4 gets 403 error

I am trying to read google sheet data through it API v4. but every time he speaks PERMISSION_DENIEDwith an error code403

I follow his official guide to do this Checkout here

here is some information to configure it

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 noticeable.

Thank Advance

+4
source share
1 answer

I am very glad that I decided it myself.

just send an answer to tell the other what the problem is.

In fact, my Google leaflet was closed, so I just made it public (accessible to everyone) and bingo!

Thnaks

0
source

Source: https://habr.com/ru/post/1656793/


All Articles