Google Groups

add Organization via Python client library


PC Mar 11, 2012 10:34 AM
Posted in group: Google Contacts, Shared Contacts and User Profiles APIs
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'))