[英]Android - Google Sheets API v4 getting Error 403
i am trying to read google sheet's data via its API v4
. 我正在尝试通过其API v4
读取Google工作表的数据。 but every time it is saying PERMISSION_DENIED
with error code 403
但每次都说PERMISSION_DENIED
,错误代码为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! 实际上,我的Google工作表是私人的,因此将其公开(所有人均可使用)和宾果游戏!
Thnaks 恶作剧
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.