On Jul 13, 11:59 am, gganesh <[email protected]> wrote:
> Hi Julian,
> Thanks for your reply
> gd_client = gdata.contacts.service.ContactsService()
> gd_client.email = yemail
> gd_client.password = ypass
> gd_client.source = 'GoogleInc-ContactsPythonSample-1'
> gd_client.ProgrammaticLogin()
> query = gdata.contacts.service.ContactsQuery()
> query.max_results=150
> feed = gd_client.GetContactsFeed(query.ToUri())
> # ---------The below Line ,is how i got the User Name
>
> print feed.title.text.rstrip('s Contacts').rstrip (" ' ")
>
>
>
> is this the right way of getting the Name of the user who has logged
> in
>
> Thanks
> Ganesh
>
> On Jul 10, 7:28 pm, "Julian (Google)" <[email protected]> wrote:
>
> > Hi Ganesh,
>
> > From the full feed you can get the information from <title> or
> > <author>
>
> > Cheers,
> > Julian
>
> > On Jul 10, 11:16 am, gganesh <[email protected]> wrote:
>
> > > Hi friends,
> > > I have incorporated ClientLogin into my python application to
> > > retrieve contact list of the user , I like to know how to get the name
> > > of the user who has logged in
> > > Thanks
> > > ganesh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---