哪些步骤会重现此问题?
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属性