But the question still remains. Is there an easy way to Retrieve All
Groups or Retrieve All Members like we did before with EmailListFeed
and EmailListRecipientFeed?
Right now, EmailListFeed and EmailListRecipientFeed are working for
groups. I much rather get information about groups and get a list of
group members in 3 highly-readable lines than in 20 lines with really
low readability for getting a list of all the groups or getting a list
of all the members within the group.
For example, right not I need to be able retrieve users from all
groups so we could compare them to a master list. And writing 40
lines just to get a list of member for each group with it creating two
temporary xml files, so I could parse the xml file and get the ids by
searching with tags and having to arbitrarily pluck data from a column
number, seems kind of silly. (Heck, I hardly understood what I just
wrote!) [See the coding example I provided on the first post.]
Through EmailList, I can do it in 6 lines:
EmailListFeed emailList = service.RetrieveAllEmailLists();
foreach (EmailListEntry entry in emailList.Entries)
{
EmailListRecipientFeed feed = service.RetrieveAllRecipients
(entry.EmailList.Name);
foreach (EmailListRecipientEntry rEntry in feed.Entries)
Console.WriteLine(rEntry.Recipient.Email); // example
}
Maybe there is a way to do it easily without using these depreciated
functions, but I can't figure it out.
On Jan 28, 3:58 am, "Julian (Google)" <[email protected]> wrote:
> Hi,
>
> The installer has not been updated yet. But, DLLs and source have the
> fix in place.
>
> You can find the new DLL
> here:http://code.google.com/p/google-gdata/source/browse/#svn/trunk/client...
>
> Cheers,
> Julian
>
> On Jan 28, 3:29 am, Daniel <[email protected]> wrote:
>
> > Thanks for your information.
>
> > I guess I'll stay away from using groups for now.
>
> > On Jan 26, 9:54 am, "Julian (Google)" <[email protected]> wrote:
>
> > > Hi,
>
> > > The problem is a bug on the URL for RetrieveGroups, it will be fix on
> > > the next release.
>
> > > You would need to download the code from the SVN and change the
> > > function RetrieveGroups to be able to use it before the next release,
> > > I'll try to make this high priority, it should be soon on the SVN and
> > > later on the release.
>
> > > --- Donner4/clients/cs/src/gapps/groupsservice.cs (revision 826)
> > > +++ Donner4/clients/cs/src/gapps/groupsservice.cs (working copy)
> > > @@ -207,7 +207,7 @@
> > > public AppsExtendedFeed RetrieveGroups(String memberId,
> > > Boolean directOnly)
> > > {
> > > Uri getGroupUri = new Uri
> > > (AppsGroupsNameTable.AppsGoogleGroupsBaseFeedUri + "/"
> > > - + domain + "?memberId=" + memberId + "&directOnly=" +
> > > directOnly.ToString());
> > > + + domain + "?member=" + memberId + "&directOnly=" +
> > > directOnly.ToString());
> > > return QueryGroups(getGroupUri);
> > > }
>
> > > Thanks,
> > > Julian
>
> > > On Jan 25, 11:34 pm, Daniel <[email protected]> wrote:
>
> > > > I should probably clarify that for RetrieveGroups, I tested it on a
> > > > new account, one not belonging to any group, and yet it listed that he
> > > > belongs to every group.
>
> > > > For example:
>
> > > > > extendedFeed = service.Groups.RetrieveGroups(newMemberId, true);
> > > > > // PsuedoCode: SaveToXML like the previous example as file1
> > > > > extendedFeed = service.Groups.RetrieveGroups(newMemberId, false);
> > > > > // PsuedoCode: SaveToXML like the previous example as file2
> > > > > extendedFeed = service.Groups.RetrieveAllGroups();
> > > > > // PsuedoCode: SaveToXML like the previous example as file3
> > > > > // Compare all three files, and all three files and the content of
> > > > > all three files are the same
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps 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://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---