I've just re-checked the online docs
(http://code.google.com/apis/contacts/docs/3.0/developers_guide_python.html)
and realised that the
call to add the contact should actually be:
*contact_entry = client.CreateContact(new_content)*
which produces a different error:
*Traceback (most recent call last):
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/__init__.py",
line 515, in __call__
handler.get(*groups)
File "/Users/adrian/Dropbox/GAE/myappmarks/contacts_handler.py", line 56, in
get
contact_entry = client.CreateContact(new_contact)
File "/Users/adrian/Dropbox/GAE/myappmarks/gdata/contacts/client.py", line
110, in create_contact
auth_token=auth_token, **kwargs)
File "/Users/adrian/Dropbox/GAE/myappmarks/gdata/client.py", line 681, in post
entry.to_string(get_xml_version(self.api_version)),
AttributeError: 'ContactEntry' object has no attribute 'to_string'*
which - sadly - is no easier to understand, Adrian
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html