Anirudth.  This is great information and resolved several issues. It's
funny that some of it I've used before and forgot where it was
located.

Larry

On Jul 14, 4:15 am, "Anirudh (Google)" <[EMAIL PROTECTED]> wrote:
> Hi Larry,
>
> You can find some useful documentation on Zend GData PHP library 
> here:http://framework.zend.com/manual/en/zend.gdata.gapps.html
>
> There is also an excellent demo included with Zend library that
> showcases all the features of Provisioning API v2.0:
> <Zend-Install-folder>/demos/Zend/Gdata/Gapps.php
>
> To answer your specific query, you can retrieve email addresses using
> the following code:
>
> $client = Zend_Gdata_ClientLogin::getHttpClient($email, $password,
> Zend_Gdata_Gapps::AUTH_SERVICE_NAME);
> $service = new Zend_Gdata_Gapps($client, $domain)
> $emailList = "listname";
> $feed = $service->retrieveAllRecipients($emailList);
> foreach ($feed as $recipient) {
>          echo $recipient->who->email;
>
> }
>
> You could also take a look at the raw XML response for
> retrieveAllRecipients() to understand how the feeds are getting
> translated to PHP objects in 
> general:http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_referenc...
>
> -Anirudh
>
> On Jul 12, 3:42 am,techlover<[EMAIL PROTECTED]> wrote:
>
> > I'm new to using APIs.  Thanks to your help, I'm able to connect and
> > run the php Provisional API calls.  However, I barely understand xml.
>
> > I was able to use retrieveAllEmailLists() and an example used
> > $listEntry->emaiilList->name or $listEntry->name->name to get each
> > list name.
>
> > Now I'm trying to use retrieveAllRecipients(string listname).  I
> > thought each value in the list can be referenced by $recipient->who->name 
> > where $recipient is just the key in a foreach list of the array
>
> > received from the API function call but this just gives me all the
> > entries in the array.  Could some one instruct me or point me to a doc
> > showing how to access the email addresses in the email list for this
> > case and more importantly how to reference specific data values in
> > general?
>
> > Thanks.
>
> > Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to