Skip to main content

Zend_Gdata and OAuth



I successfully retrieved token key / secret after applying Google Hybrid Protocol (OpenID + OAuth).





Then I'm looking into Zend documentation here: http://framework.zend.com/manual/en/zend.gdata.html





... and into Calendar API example here: http://code.google.com/googleapps/marketplace/tutorial_php.html#Integrate-OAuth





They mention about AuthSub method supported by Zend_Gdata library (especially in Zend_Gdata_HttpClient class form what I can see).





But I cannot figure out how to use my key/secret tokens retrieved by Hybrid method in order to access calendar feeds.





Example mentioned above uses AuthSub authentication, while Google recommends to switch to OAuth if possible and where possible, instead of using AuthSub.





Any ideas? Thanks.


Comments

  1. I think you got half of the solution in calendar + OAuth + phpHere i mention some links that may help you in solving your problem.

    Links:
    http://framework.zend.com/svn/framework/standard/trunk/demos/Zend/Gdata/Calendar.php
    http://osdir.com/ml/google-calendar-help-dataapi/2011-06/msg00255.html

    Link for contact example:
    http://gdatatips.blogspot.com/2008/11/2-legged-oauth-in-php.html

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?