I believe this is what you're looking for:
new_contact.organization = gdata.data.Organization(
label='Work',
primary='true',
name=gdata.data.OrgName(text='Google'),
title=gdata.data.OrgTitle(text='Software Tester')
)
Although the online documentation for the Contacts API is pretty
sparse, the pydoc stuff is quite helpful. To find out all you needed
for the above you just need to type the following into a python
terminal:
import gdata.data
help(gdata.data.Organization)
On Mar 11, 6:34 pm, PC <[email protected]> wrote:
> Hello
>
> I am trying to add contact information via the Python client library.
> The following code runs but the data does not show up in the UI for that
> contact.
> Also in the UI the Job Title / Company field under the contact name are no
> longer selectable. There is just whitespace.
> What am I doing wrong here?
>
> # Set Title and Organization
> new_contact.organization = gdata.data.Organization(
> label='Work',
> primary='true',
> org_name=gdata.data.OrgName(text='Google'),
> org_title=gdata.data.OrgTitle(text='Software Tester'))
--
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