I have another problem though, if i get it as JSON and use json_decode
() i can not access the following object:
All i want is to retrieve the address, but i cant access the object
cause its name contains a $ (gd$email).

["gd$email"]=>
  array(1) {
    [0]=>
    object(stdClass)#48 (3) {
      ["rel"]=>
      string(38) "http://schemas.google.com/g/2005#other";
      ["address"]=>
      string(23) "[email protected]"
      ["primary"]=>
      string(4) "true"
    }
  }

And about the code, i cant really paste it here since its several
classes (it uses 4 classes at the moment) which are property of my
employer :S
But i can say that the oAuth ( http://nl3.php.net/manual/en/book.oauth.php
) really helps a lot, makes it a lot easier to retrieve the tokens and
data.


On May 14, 11:09 am, sebastian de comocomo <[email protected]>
wrote:
> Hi Michael,
>
> Could you please publish the code?
>
> Thanks
> Sebastian
>
> On 14/05/09 10:41, "MichaelW" <[email protected]> wrote:
>
>
>
>
>
> > I fixed the problem i had, though i have no idea how really.
>
> > On May 14, 10:22 am, MichaelW <[email protected]> wrote:
> >> Thanks for that, though now for some reason i keep getting 'invalid
> >> request token' when i try to exchange the request token for an access
> >> token and i have no idea why they're suddenly invalid.
>
> >> I store the request token in a database serialized the exact same way
> >> i get it.
>
> >> On May 13, 6:25 pm, Igor Custodio <[email protected]> wrote:
>
> >>>  Hi Michael,
>
> >>>  Try to use the scope: 
> >>> "http://www.google.com/m8/feeds/contacts/default/full
> >>> "
>
> >>>  That's it,
>
> >>>  Igor
>
> >>> 2009/5/13 MichaelW <[email protected]>
>
> >>>> I read through the entire thread, if i try the scope "http://
> >>>>www.google.com/m8/feeds/" and feed "http://www.google.com/m8/feeds/
>
> contacts/deault/full<http://www.google.com/m8/feeds/%0Acontacts/deault/full>>>>
>
>
>
> >>>> "
> >>>> i get an error, ["lastResponse"]=> string(31) "The request token is
> >>>> invalid..
>
> >>>> Note that im NOT using the Zend framework, im using Pecl oAuth module
> >>>> and a custom made class to contact google api.
> >>>> Retrieving contacts works perfect, but their emails is still a
> >>>> problem.
>
> >>>> What i need is a way to get all the email address' of a users contacts
> >>>> using oAuth.
>
> >>>> On May 13, 5:25 pm, Igor Custodio <[email protected]> wrote:
> >>>>>  Hi,
>
> >>>>>  Maybe this can help:
>
> >>>>>http://groups.google.com/group/google-contacts-api/browse_thread/thre...
>
> >>>>>  Best regards,
>
> >>>>>  Igor
>
> >>>>> 2009/5/13 MichaelW <[email protected]>
>
> >>>>>> Note im using the following scope and feed:
>
> >>>>>> private $scope = "http://www-opensocial.googleusercontent.com/api/
> >>>>>> people/ <http://www-opensocial.googleusercontent.com/api/%0Apeople/>";
> >>>>>> private $feed = "http://www-opensocial.googleusercontent.com/api/
> >>>>>> people/@me/@all<
> >>>>http://www-opensocial.googleusercontent.com/api/%0Apeople/@me/@all>
> >>>>>> ";
>
> >>>>>> On May 13, 5:02 pm, MichaelW <[email protected]> wrote:
> >>>>>>> I'v managed to get contacts from google using oAuth in PHP, but i
> >>>>>>> noticed that not all the contacts have an email. Those that have
> >>>>>>> filled in a display name have no email displayed in the response.
>
> >>>>>>> Now my question is, how do i retrieve the email address' from all of
> >>>> a
> >>>>>>> users contacts? (This is for a "Invite my friends" function).
--~--~---------~--~----~------------~-------~--~----~
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