Hi, After the first authentication process (using a single use token) you should get a session token - $sessionToken = Zend_Gdata_AuthSub::getAuthSubSessionToken(trim($singleUseToken), $client); You should save this token for the next time you try to login, and validate it: $tokenInfo = Zend_Gdata_AuthSub::getAuthSubTokenInfo($sessionToken, $client); If it is valid, then you can use it.
I hope this helps. Since I have a working PHP client with proper token handling and authentication (stll vs. H9, but secure=1...), you are welcome to ask for further support. Regards, Shushu On Jun 3, 8:34 pm, SBME 2010 <[email protected]> wrote: > Thanks So much Paul, > Actually I use PHP language and I want to know can I take this > Authentication which access profiles without entering password on *H9*?? > I already run the code which is on demo by changing bit things like put > secure=0 as I use localhost but at each time I run the code I must enter the > password of the profile I want to access. > If u want to send u my code after modification just tell me and I will send > it to u > > Thanks for the second time Paul > > ---- > Yoyo > > > > On Thu, Jun 3, 2010 at 7:53 PM, Paul (Google) <[email protected]> wrote: > > Hello Yoyo, > > > The recommended authentication systems for Web applications are > > AuthSub and OAuth. Both of these systems allow a client applications > > to access users' profiles without requiring users to enter their > > passwords into the client applications. With both of these systems, a > > user first accesses the client application, he or she is then > > forwarded to Google to authenticate, and finally the user is > > redirected back to the client application with a token that can be > > stored and used to access the user's profile. AuthSub is relatively > > easy to get up to speed with, but OAuth is an open standard that's > > fairly popular. > > > More on AuthSub and OAuth at the following site: > > >http://code.google.com/apis/gdata/docs/auth/overview.html > > > It would certainly be helpful to know which example application you're > > working with, and what language you're writing your code in. The > > GData client libraries support AuthSub and OAuth, which makes user > > authentication much easier. Hopefully the example code that you have > > uses the GData client library. If not, we certainly have examples > > that do! > > > Cheers! > > > Paul (Google) > > > On Jun 2, 6:46 pm, YoYo <[email protected]> wrote: > > > Please any help!!!! > > > > On Jun 2, 5:47 am, YoYo <[email protected]> wrote: > > > > > Hello All, > > > > > I want to ask about something which is imp. for me: > > > > I use H9 and I run the sample code of Health that is on Demo(After > > > > changing bit things) and everything is ok (Send notices and CCr in > > > > otherwords update the profile) but my problem is that at each time I > > > > run the code to update the profile I should write the password of the > > > > profile(password of the email) that I want to do updating on it. So if > > > > I want to update users profile not my profile :how can I do this > > > > updating(Send notice and CCr) without writing password and writing > > > > only the email that I want to update its profile under H9 ????and is > > > > the registeration is a must in this case especially I am in developing > > > > stage not at a product stage at all??????? > > > > > Thanks so much > > > > > --- > > > > Yoyo > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Health Developers" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<googlehealthdevelopers% > > [email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/googlehealthdevelopers?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Health Developers" 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/googlehealthdevelopers?hl=en.
