ACueva / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Support contact phone, address, groups, birthday etc #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For google 0.9.5 the only supported data items (named "styles" here for some 
reason) for contacts seem to be name and email.  When multiple email addresses 
are present, the emails are listed separated by blanks, without clarification 
of whether they are home, work or other.

"google contacts list name,url" always returns "N/A" for the url.

Trying to list the "where" style (which might be used for the address) yields a 
traceback and an exception "AttributeError: 'ContactEntry' object has no 
attribute 'where'"

Please add support for

Original issue reported on code.google.com by neal...@gmail.com on 19 Jun 2010 at 5:31

GoogleCodeExporter commented 9 years ago
Yes, I'd like to be able to choose fields too. At least there should be some 
documentation which fields are supported. For now you can just infer that name 
and email are working from the example.

Original comment by markus.b...@gmail.com on 20 Jun 2010 at 4:47

GoogleCodeExporter commented 9 years ago
I have slightly looked into this and will try and work on it some this weekend 
because I would like this too.

Original comment by ericvw on 24 Jun 2010 at 8:26

GoogleCodeExporter commented 9 years ago
Hi, 

While playing with this I felt the need for getting the telephone numbers. Find 
attached a patch which implements this.

Telephone numbers are normalized (stripped (,),- and spaces and leading 00 is 
changes with +) and printed as email addresses, that is, sepparated by a space.

Patch is against trunk.

To query the iformation just do: ./google contacts list name,phone

Original comment by saghul on 30 Jun 2010 at 11:44

Attachments:

GoogleCodeExporter commented 9 years ago
Trying to get all contact info in one fell swoop...

Original comment by tom.h.mi...@gmail.com on 1 Jul 2010 at 3:45

GoogleCodeExporter commented 9 years ago
I haven't had time to get around to this yet.  Go ahead Tom and I will look at 
other issues to pick up.  Past week has been a bit busy.

Original comment by ericvw on 1 Jul 2010 at 3:56

GoogleCodeExporter commented 9 years ago
Accessing all the desired information is apparently unsupported until version 3 
of the protocol... but r329 makes a dent in this request.

Original comment by tom.h.mi...@gmail.com on 7 Jul 2010 at 11:45

GoogleCodeExporter commented 9 years ago
Issue 215 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 9 Jul 2010 at 2:11

GoogleCodeExporter commented 9 years ago
OK, as of r380, the following fields are supported (for gdata-python-client >= 
2.0.10, probably >= 2.0 is fine)

'address' - postal addresses.
'birthday' - birthday. 
'company' - company name.
'email' - email address(es).
'event' - events such as birthdays, anniversaries, etc.
'im' - instant messanger handles.
'name' - full name.
'nickname' - nickname.
'notes' - notes on a contact.
'organization' - company or organization.
'phone' - phone numbers.
'relation' - names of relations, such as manager, spouse, etc.
'title' - job title.
'user_defined' or 'other' - custom labels.
'website' - websites and links.

The only thing I think I'm missing is what groups the contact belongs to. Can 
anyone else think of a field I haven't covered yet?

Original comment by tom.h.mi...@gmail.com on 19 Aug 2010 at 5:25

GoogleCodeExporter commented 9 years ago
0.9.10 contains the aforementioned additional fields. Group names is still 
missing. It's not actually data that gets transmitted along with a contact -- 
only the group-id (an unhelpful string of letters and numbers).

Original comment by tom.h.mi...@gmail.com on 3 Sep 2010 at 2:19

GoogleCodeExporter commented 9 years ago
I'm going to mark this fixed, as all the primary goals were met. I created a 
separate issue for dealing with groups, issue 292. Please star that if you'd 
like to see better support for listing groups.

Original comment by tom.h.mi...@gmail.com on 23 Sep 2010 at 6:16

GoogleCodeExporter commented 9 years ago
Issue 294 has been merged into this issue.

Original comment by tom.h.mi...@gmail.com on 24 Sep 2010 at 3:40

GoogleCodeExporter commented 9 years ago
We can list phone numbers and birthdays, but how do you ADD to those fields?

Original comment by somethin...@gmail.com on 24 Sep 2010 at 9:43

GoogleCodeExporter commented 9 years ago
Creating a contact with anything besides name and email isn't supported yet, 
but it would be rather nice. Create an enhancement issue! Or better yet, write 
the code yourself :)

Original comment by tom.h.mi...@gmail.com on 24 Sep 2010 at 9:46