【发布时间】:2013-11-28 16:09:25
【问题描述】:
背景资料
我正在使用 python gdata spreadsheet-api 和 OAuth2.0 和 certificate credentials 来访问 Google Apps 域中的数据
我正在尝试使用
在电子表格中插入一行spreadSheetClient = SpreadsheetsClient()
# Certificate Authentication ....
spreadSheetClient.add_list_entry(list_entry=list_entry, spreadsheet_key=spreadSheetKey,
worksheet_id=workSheetId)
其中list_entry 是gdata.spreadsheets.data.ListEntry 的实例,spreadsheetKey 和worksheetId 是str 的实例
我收到以下错误
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
我该如何解决这个问题?
【问题讨论】:
标签: python gdata google-oauth google-spreadsheet-api google-apps-marketplace