1

哪些步骤将重现该问题?

1.使用批量联系人api(gdata-python-client)更新联系人,如下所示

request_feed = gdata.contacts.data.ContactsFeed()
contact_entry = gd_client.GetContact(contact_url)
request_feed.AddUpdate(entry=contact_entry, batch_id_string='update')
response_feed = gd_client.ExecuteBatch(request_feed,'https://www.google.com/m8/feeds/contacts/default/full/batch')
for entry in response_feed.entry:
  print '%s: %s (%s)' % (entry.batch_id.text, entry.batch_status.code, entry.batch_status.reason)

2. 尝试将 If-match 标头添加到文档中提到的请求

 ifmatch_header = atom.client.CustomHeaders(**{"If-Match": "*"})
 response_feed = gd_client.ExecuteBatch(request_feed,'https://www.google.com/m8/feeds/contacts/default/full/batch', ifmatch_header=ifmatch_header)

什么是预期的输出?你看到了什么呢?

我正在获取If-Match 或 If-None-Match 标头或条目 etag 属性

4

0 回答 0