Sorry for cluttering up this discussion group. I was able to figure
out the answer.

It turns out that I only need to specify version 2 of the API in the
query.

$query = new Zend_Gdata_Query( "http://www.google.com/m8/feeds/groups/
default/full?v=2" );

And once I was using version 2, I had to remove the setMaxResults
line. That did it.

On another note, does anyone know how to get the e-mail address and/or
nickname of the authenticated user when using AuthSub?

Thanks again,

Greg

On Mar 20, 11:51 pm, Greg Levine <[email protected]> wrote:
> I am trying to extract all contacts from a specified group, with the
> goal of firing off an e-mail to each address in the group. I'm
> starting by displaying a page that lists the authenticated user's
> groups. When the user clicks on a group, he/she will see a form in
> which the e-mail content will be typed. Upon submitting the e-mail,
> each of the contacts in the selected group will be sent the e-mail
> using PHP's mail function.
>
> I've successfully authenticated a user using AuthSub and am able to
> produce a list of contacts by querying "http://www.google.com/m8/feeds/
> contacts/default/full" with the Zend_Gdata_Query method. However, I am
> unable to produce a list of the groups associated with the
> authenticated account. The code I am trying is as follows:
>
> $gdata = new Zend_Gdata( $httpClient );
> $query = new Zend_Gdata_Query( "http://www.google.com/m8/feeds/groups/
> default/full" );
> $query->setMaxResults( 100 );
> $feed = $gdata->getFeed( $query );
>
> foreach( $feed as $entry )
> {
>         $xml= $entry->getXML();
>         print_r( $xml );
>
> }
>
> I don't see any errors. Just a blank page. Nothing is returned. Any
> ideas as to why it might be failing?
>
> Thanks in advance.
>
> Greg
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to