首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >403,If-Match或If-None-Match header或entry etag属性必填

403,If-Match或If-None-Match header或entry etag属性必填
EN

Stack Overflow用户
提问于 2013-11-29 00:09:26
回答 1查看 741关注 0票数 1

背景信息

我正在使用带有OAuth2.0certificate credentialspython gdata spreadsheet-api来访问谷歌应用程序域中的数据

我正在尝试使用以下命令在电子表格中插入一行

代码语言:javascript
复制
spreadSheetClient = SpreadsheetsClient()
# Certificate Authentication  ....
spreadSheetClient.add_list_entry(list_entry=list_entry, spreadsheet_key=spreadSheetKey,
                                                     worksheet_id=workSheetId)

其中,list_entrygdata.spreadsheets.data.ListEntry的实例,spreadsheetKeyworksheetIdstr的实例

我收到以下错误

代码语言:javascript
复制
  File "/home/gautam/Projects/osflow/build/runtime/gdata/spreadsheets/client.py", line 450, in update_cell
    **kwargs)
  File "/home/gautam/Projects/osflow/build/runtime/gdata/client.py", line 730, in update
    desired_class=entry.__class__, **kwargs)
  File "/home/gautam/Projects/osflow/build/runtime/gdata/client.py", line 319, in request
    RequestError)
RequestError: Server responded with: 403, If-Match or If-None-Match header or entry etag attribute required

我该如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2013-11-29 05:45:08

ListFeed追加行,而不是插入行,列需要列标题(我认为标题是必需的)。

有关如何使用列表提要的示例,请查看http://gdata-java-client.googlecode.com/svn-history/r51/trunk/java/sample/spreadsheet/list/ListDemo.java

我不经常使用列表提要,但感觉很像使用SQL,可以过滤/追加等。我倾向于使用单元格提要。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20270565

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档