FlorianHeigl / googlecl

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

Patch to add Contact group, add, delete, and list support. #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was excited to hear about GoogleCL and I have always wanted to do something 
similar, but never had the time to get it started.  I was looking around and 
noticed that there was no contact group support, so I added some basic 
functionality to get it started.

I followed the model and design of the original contacts/service.py format.  
There are areas between retrieving contacts by contacts or group could be 
refactored and will be more than happy to do that since the only real 
difference between list and glist is the kind parameter needed for the 
GetFeedUri().  However, I thought I would first get this out there to see if 
this is something that could be incorporated.

All commands are similar to the original add, delete, and list except they are 
prefixed with 'g'.

Examples usage:

# list all contact groups
google contacts glist 

# list contact groups that match <name>
google contacts glist --title <name>

# add a group(s)
google contacts gadd group1 group 2, ...

# delete group(s)
google contacts gdelete group1, group 2, ...

Original issue reported on code.google.com by ericvw on 19 Jun 2010 at 6:28

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry about the lines being the same in the top of the patch file, I have ViM 
set up to strip trailing whitespace. 

Original comment by ericvw on 19 Jun 2010 at 6:37

GoogleCodeExporter commented 9 years ago
Cleaned up the patch, made a few changes and committed as r251.  Thanks ericvw!

Original comment by jh...@google.com on 19 Jun 2010 at 10:40