You could use the Contacts project template in VS2005, steal the code
that get's all the contacts and just put's it to the console. Code
would look like this:
using System;
using System.Collections.Generic;
using System.Text;
using Google.GData.Client;
using Google.GData.Contacts;
using Google.Contacts;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
RequestSettings settings = new
RequestSettings("contactDumper", "theusername", "thepassword");
settings.AutoPaging=true;
ContactsRequest request = new ContactsRequest(settings);
Feed<Contact> feed = request.GetContacts();
foreach (Contact c in feed.Entries)
{
Console.WriteLine("New Contact:");
Console.WriteLine(c.Title);
foreach (GroupMembership g in c.GroupMembership)
{
Console.WriteLine(g.Value);
}
Console.WriteLine("End of Contact");
}
}
}
}
You obviously have to modify the output code...
Frank
On Mar 2, 2009, at 3:58 PM, jamesjohnmcguire wrote:
>
> I'm using c#. If you have sample that would be great. Otherwise, I'll
> be looking into this in the upcoming weeks.
>
> On Mar 2, 8:34 pm, "Julian (Google)" <[email protected]> wrote:
>> Hi,
>>
>> I am not if there is any solution available that includes Group
>> information. A simple script should do the job, are you interested on
>> a particular programming language?
>>
>> -julian
>>
>> On Feb 27, 12:25 pm, JahMic <[email protected]> wrote:
>>
>>
>>
>>> Is there a way to simply export contact info including which groups
>>> they are a part of?
>>
>>> I'm hoping that I can use a pre-exising solution to this and don't
>>> actually have to create a custom application to do this, but if that
>>> is the only option, I will.
>>
>>> Thanks in advance- Hide quoted text -
>>
>> - Show quoted text -
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Contacts API" 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://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---