Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If-Match or If-None-Match header or entry etag attribute required error while using batch update of contacts #699

Open
GoogleCodeExporter opened this issue May 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.update contact using batch contact api(gdata-python-client)  as like below

   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. tried with adding below line 

   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)


What is the expected output? What do you see instead?

  I'm getting If-Match or If-None-Match header or entry etag attribute required

Please use labels and text to provide additional information.

Original issue reported on code.google.com by venkat...@test.mogocrm.com on 20 May 2014 at 8:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant