Zend_Gdata和 OAuth

2022-08-30 21:21:46

我在应用Google混合协议(OpenID + OAuth)后成功检索了令牌密钥/机密。

然后我在这里查看Zend文档:http://framework.zend.com/manual/en/zend.gdata.html

...并在此处进入日历API示例:http://code.google.com/googleapps/marketplace/tutorial_php.html#Integrate-OAuth

他们提到了Zend_Gdata库支持的AuthSub方法(特别是在我可以看到的Zend_Gdata_HttpClient类形式中)。

但是我无法弄清楚如何使用混合方法检索的密钥/机密令牌来访问日历源。

上面提到的示例使用AuthSub身份验证,而Google建议在可能的情况下切换到OAuth,而不是使用AuthSub。

有什么想法吗?谢谢。


答案 1

我认为您在日历+ OAuth + php
中获得了一半的解决方案,在这里我提到了一些可以帮助您解决问题的链接。

友情链接:
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

联系人链接示例:
http://gdatatips.blogspot.com/2008/11/2-legged-oauth-in-php.html


答案 2

推荐